I'm working on a data versioning solution for hibernate. When I'm creating a new version of an existing object, I first copy all the information from the original object. For this I traverse the ClassMetadata information and copy the values using getPropertyValue and setPropertyValue.
When creating a new entry for any existing associations in join tables, I need to know which columns the original object joins with, i.e. if I join with jointable.a or jointable.b if the jointable is used for a-b joins. I've looked a Joinable, but that does not seem to contain what I want. Is there some better way than trying to infer join column strings based on class names (which wouldn't work in my current setup)?
Thanks, Tim
|