Register / Login
Win a copy of
The Little Book of Impediments (e-book only)
this week in the
Agile and Other Processes
Object Relational Mapping
Hibernate key mapping for GROUP BY
posted 10 years ago
When using 'createSQLQuery', do you still need the hbm mapping file?
I am struggling with
SELECT trunc(some_date), some_field
GROUP BY trunc(some_date), some_field
ORDER BY trunc(some_date), some_field
the hbm file look like, in particular - how to define the ID?
A key (ID) on some_date does not work (wrong column name Oracle error), nor does a composite-id on (some_date and some_field)
Thanks so much!!!
calling DB functions from Hibernate
fetching Child objects
make db table read only
Dynamic sql with hibernate
How to create hbm files for a table which does not have a primary key.