Hello, I am migrating some hql queries to v6.final and have noticed there are some differences. Some of my queries seem not to work any more.
MyClass is in package org.me
@Table(name = "myTable")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class MyClass{
..
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "myid")
public MyObject getMyEntry() {
return myEntry;
}
..
}
There is no field on the class myid. This used to work previously.
query = “delete from org.me.MyClass where myid=:id”;
session.createQuery(query);
java.lang.IllegalArgumentException: org.hibernate.query.SemanticException: Could not interpret path expression ‘myid’
I have tried lots of different ways in the query and adding the class also, and have been unable to make it work.
Any help would be appreciated.