Expert |
 |
Joined: Thu Dec 14, 2006 5:57 am Posts: 1185 Location: Zurich, Switzerland
|
You definetely need some king of id. Otherwise hibernate can't distinguish the objects. If you don't have on in your query try to use a surrogate id, e.g ROW_NUMBER() or a combination of some columns which are unique. But have in mind that using ROW_NUMBER() might not be repeatable in the assigned ids.
But it's hard to give you more advice without knowing more about the objects and the query.
_________________ --Wolfgang
|
|