Hello!
Is it possible to define table name programmatically per object instance (not class), or have the instances of particular class mapped to different tables depending on the value of particular property?
NamingStrategy seems to be the closest one, but it does not support object-level table name definition...
Additional info:
Our data objects contains predefined properties mapped to the primary table and a Map with the keys corresponding to the columns in the target table. We want this Map persisted in a table determined by the value of one of object attributes (i.e. properties). We are planning to use <dynamic-component> to map the Map contained properties.
Thank you,
Dmitri
|