Expert |
|
Joined: Tue Nov 23, 2004 7:00 pm Posts: 570 Location: mostly Frankfurt Germany
|
I think this will not work with a mapping but with a query.
You could create a query using a subselect by yourself, so you will receive a tuple of objects.
obj[0] your object, obj[1] your additional value
Look for
Scalar results
and
subqueries
in the reference.
Regards Sebastian
_________________ Best Regards
Sebastian
---
Training for Hibernate and Java Persistence
Tutorials for Hibernate, Spring, EJB, JSF...
eBook: Hibernate 3 - DeveloperGuide
Paper book: Hibernate 3 - Das Praxisbuch
http://www.laliluna.de
|
|