Sorry, let me try to be more specific with more detailed example:

BasicType Parent  {
    String a
}

BasicType Child extends @Parent {
    String b
}

BasicType Child2 extends @Parent {
    String c
}

I was thinking that the component mapping could be:

 <component class="com.foo.Child" lazy="false" name="child">
      <property name="a">
      <property name="b">
 </component> 

 <component class="com.foo.Child2" lazy="false" name="child2">
      <property name="a">
      <property name="c">
 </component> 

This is not possible in Hibernate?  

Thanks,
Polly



Patrik Nordwall wrote:
> 
> I don't understand. Are we having different java classes for the
> subclasses, or do you mean that we flatten the java classes also?
> 
> If we have java subclasses I don't think the component mapping you suggest
> will be able to restore the correct type.
> 
> If we have one java class, UserInformation, containing all properties from
> all subclasses, it will of course work.
> 
> /Patrik
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-Sculptor--BasicType-and-inheritance-tp19227979s17564p19636413.html
Sent from the Fornax-Platform mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Fornax-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fornax-developer

Reply via email to