Wednesday, October 8, 2008

Hibernate - Derived Properties

The other day I used for the first time derived properties in Hibernate. What this means is that instead of mapping a property of your POJO class to a database column, your property is computed dynamically by doing an additional sub-select.

It is briefly discussed in chapter 5.1.11. of the Hibernate documentation. It is probably not a feature that will need often, however it can be a life/time-safer if you need it. It worked great for me.

Labels:

1 Comments:

Blogger Congress Die Hard Fan said...

Hello... Could you please give me more explanation about the derived properties, pictorial example if u can?

Thanks in advance.

February 27, 2009 at 6:10 PM  

Post a Comment

Subscribe to Post Comments [Atom]

<< Home