@Entity
public class Foo {
private Bar bar;
public Bar getBar() {return bar;}
public void setBar(Bar bar) {this.bar = bar;}
}
@Embeddable
public class Bar {
private String baz;
public String getBaz() {return baz;}
public void setBaz(String baz) {this.baz = baz;}
}
Foo filter = new Foo();
Bar bar = new Bar();
bar.setBaz("baz");
filter.setBar(bar);
FooDAO.findFiltered(filter);
It appears to occur also for properties marked with @Transient and/or setter methods that do not correspond to an actual persisted field. Example:
yields:
org.hibernate.QueryException: could not resolve property: baz2 of: Foo