Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version: 3.2
[b]use Annotation [b]
Hi,
I want add the result of a HQL query as a virtual property of object.
1) Maybe in using a Tuplizer or a customized type ? but I didn't get it.
Example: I have a function extracting the date of an event representing the creation of a resource from a list of events generated by a system. This date is a kind of property of the resource, its creation date . So I want add this date as a (virtual) property of the resource Class (with a lazy mode).
Futhermore I have a set of statistics (so dynamic values) related to the resource. I want add these statistics as properties of the resource. How could I do?
2) Is it possible to these virtual properties inside a HQL query?
thanks for you answers !