I my EJB container I have an hibernate annotated bean. Because the primary key spans over 4 attributes I use an extra Id class. I have to do it like this because otherwise my annotated named query in the entity will not work.
My question:
Is it either possible:
- to use no xml based datasource mapping in SmartGWT?
or:
- to map the entity and its Id class properly in the xml based datasource mapping in SmartGWT?
Hibernate cannot map the fields correctly if I annotate 4 Id fields within the same entity. So my entity has an Idclass attribute that I scope with id.x, id.y and so on in my annotated named query. Only in this case I get results via JPA (entity manager).
It would be nice if there would either be a mapping solution for SmartGWT (for the listgrid) or just no xml mapping (I think of just regular programming the datasource mapping) ... Is that possible?
Thank you.
My question:
Is it either possible:
- to use no xml based datasource mapping in SmartGWT?
or:
- to map the entity and its Id class properly in the xml based datasource mapping in SmartGWT?
Hibernate cannot map the fields correctly if I annotate 4 Id fields within the same entity. So my entity has an Idclass attribute that I scope with id.x, id.y and so on in my annotated named query. Only in this case I get results via JPA (entity manager).
It would be nice if there would either be a mapping solution for SmartGWT (for the listgrid) or just no xml mapping (I think of just regular programming the datasource mapping) ... Is that possible?
Thank you.
Comment