-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: How add a virtual property to a object
PostPosted: Thu May 31, 2007 4:18 am 
Newbie

Joined: Thu May 31, 2007 3:52 am
Posts: 1
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 !


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.