I'm trying to use inheritance in <<entities>>. I have a Doctor entity which 
extends Person. The "load()" methods generated in DoctorDao returns an object 
of class Person and not an object of class Doctor. I understand that as the 
<<identifiers>> are shared for all children of Person, the given identifier 
could be pointing to an instance of the wrong class. But I think that in this 
case the load() method should throw a "DataRetrievalFailureException". If an 
instance of the right class is found, it should return it, possibly with a 
cast. I'm not sure, but I even think Hibernate takes care of that ...



Am I missing something here ? Else, I'll open a feature request in JIRA ...



Thanks for confirming that there is no hidden trick somewhere !
--
--

Jabber : [EMAIL PROTECTED] (feel free to contact me)
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=3452#3452
Posting to http://forum.andromda.org/ is preferred over posting to the mailing 
list!


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to