Confused about distinct/aggregate queries with (N)Hibernate
Posted
by nw
on Stack Overflow
See other posts from Stack Overflow
or by nw
Published on 2010-04-08T19:05:39Z
Indexed on
2010/04/14
21:43 UTC
Read the original article
Hit count: 128
I'm not sure how to approach queries that don't map 1:1 to my persistent entities - in other words, distinct and aggregate queries. For example, I need to retrieve a distinct list of property values for populating a drop-down list. Should I write a class and a mapping for the "entities" that are returned by this query? Or should I just use the native DB provider and work with native data sets instead?
© Stack Overflow or respective owner