|
Re: Virtual columns (@Formula of Hibernate) [message #500532 is a reply to message #500349] |
Thu, 26 November 2009 14:36 |
|
There is no direct equivalent (please log an enhancement), but depending on what you want to do, there are ways to accomplish the same thing.
EclipseLink defines a TransformationMapping which can map a computed value from multiple field values, or access the database.
You can override the SQL for any CRUD operation for a class using its descriptor's DescriptorQueryManager.
You could define a VIEW on your database that performs the function and map your Entity to the view instead of the table.
You can also perform minor translations using Converters or property get/set methods.
James : Wiki : Book : Blog : Twitter
|
|
|
|
Powered by
FUDForum. Page generated in 0.01880 seconds