at hibernate cartridge's template file: hibernate.hbm.xml.vm:


&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <key 
foreign-key="$&#123;entity.tableName&#125;_INHERITANCE_FKC">&nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <column 
name="$entity.subclassKeyColumn" sql-type="$identifier.sqlType"/>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </key>



I think the suffix _INHERITANCE_FKC for inheritance foreign key is too long. 

So when I execute the generated DDL under oracle, following error may occur:



 &nbsp; &nbsp; &#91;sql&#93; &#91;ERROR&#93; Failed to execute&#58; alter table 
SIMPLE_KNOWLEDGE add constraint

&nbsp;SIMPLE_KNOWLEDGE_INHERITANCE_FKC foreign key &#40;ID&#41; references 
KNOWLEDGE

&nbsp; &nbsp; &#91;sql&#93; &#91;ERROR&#93; java.sql.SQLException&#58; 
ORA-00972&#58; identity is too long
--
Do you want a cup of coffee ?
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=2914#2914
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