ie So if you have Person and Address having a OneToOne relationship
public class Person {
@OneToOne
private Address address;
}
... and you want to query for a Person by Address, you would probably write something like :
from Person p where p.address = ?
... in HQL. Well, this is where you start running into the Expected positional parameter glitch. Instead, write your query like this :
from Person p where p.address.id = ?
... and pass in a long / int / whatever type you use for an identifier for Person / Address instead and this will work around the glitch until it can be fixed.