I'm pretty new to this whole hibernate bit.. and I was wondering if this is possible. I would like to do the opposite of a derived property (a formula in the xml).
Lets say I have a class with two strings: FirstName, LastName
However in the database, I would like to save it as FirstName +" " +LastName. AND.. i do not want to have a variable in the class. Ie i don't want a field called FullName (that holds the first name and last name). It will be in the database only, so I can search on that name.
So on an insert, and on an update the field will have to be regenerated and then persisted.
Thanks in advance.
|