Hello,
by means of seam-gen I have a POJO with an id attribute. The id is in fact another POJO. All is ok according to the database.
I´ve defined a query in componentes.xml. It works properly:
<framework:entity-query name="POJOView" ejbql="select pojo from POJO pojo"> <framework:restrictions> <value>pojo.atb1 = #{object.atb1}</value> </framework:restrictions> </framework:entity-query>
<framework:entity-query name="POJOView" ejbql="select pojo from POJO pojo"> <framework:restrictions> <value>pojo.id.atb2 = #{object.value}</value> </framework:restrictions> </framework:entity-query>