E.g. I can see some usefulness in:
{noformat}/** * A class from an external source - aka cannot be changed */ public class Person { String firstName; String lastName; ... }{noformat}
{noformat}<entity-mappings> <entity name="Person"> <attributes> <!-- virtual attributes --> <id .../> <version ../>
<basic name="firstName" .../> <basic name="lastName" .../> </attributes> </entity> </entity-mappings>{noformat}
In a way its a natural replacement for the legacy support for of persisting entities with “external ids”. |
|