From: Laurent P. <lau...@gm...> - 2008-10-14 16:02:21
|
Hello, I'm trying to get working a mapping file where I have several levels of mapping inheritence corresponding to a java class hierarchy. Pseudo code & mapping for brevity : class Parent { String identifier; } class Child extends Parent { String text; } class Client { Child child; } <mapping for Parent, defines identifier value, with ident="def"> <mapping for Child, defines text value, inherits parent mapping > <mapping for Client, defines child value, with ident="ref"> I can get the above working if I place the identifier value xml element in Child mapping, but I can't make it work if the identifier value xml element is in Parent mapping. Please note that the mapping, with inheritence enabled, works fine without adding the identifier need. Could you please tell me if there is something wrong with my approach, or if there is a limitation ? I could live with the duplication of the id in all child mappings, but if there is a better way to do it ... Thanks in advance, -- Laurent Petit |