Assum that there is a BaseObject with inheritance strategy of "interface" which 
associate with a BaseObjectType (ManyToOne), and there are two subclasses 
derived from the BaseObject, say ConcreteObject1 and ConcreteObject2 
respectively. Then in the generated SQL statement, there are two 
BASE_OBJECT_TYPE_FKC constraints for ConcreteObject1 and ConcreteObject2 
related tables which represent the FK relationships betwen the BaseObject and 
BaseObjectType, But this (duplicate constraint name) is not allowed for MS 
SQLServer.



I checked the templates "hibernate.hbm.xml.vsl" and "hibernate.hbm.xml.vm" and 
think that the renderPropertiesAndAssociations macro have to be amended to 
resolve this problem.



Is my conclusion correct? Or is there alternative modelling method to resolve 
this problem?



Thanks!
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=196#196
Posting to http://forum.andromda.org/ is preferred over posting to the mailing 
list!


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
_______________________________________________
Andromda-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to