emmanuel wrote:
Use xdoclet.
There is no way do do that in hbm.xml
Thank you for your answer. I will read the xDoclet documentation. This will be a solution for my problem.
But having something which I can express using xDoclet but not using your *.hbm.xml files is a little bit confusing for me. Would it not be good giving the same power to xDoclet and *.hbm.xml? If there would be an additional *.hbm.xml file for the root class containing all the properties in common to all subclasses Hibernate would have all information needed to make the mapping using Java reflection. And there would be no redundancy in the *.hbm.xml files of the subclasses. May be this could be a feature in a future release? What do you think about this proposal?
Best regards Jan