I have a project which includes dto classes from another project which I can't modify. I wish to persist their data but extending or embedding them requires me to modify them by adding appropriate annotations.
Is the best solution here to use xml, or it there someway I've missed to tell hibernate to persist an embedded or composed class without annotating the other project's class?