limit the length of all our constraints and column names (default max length = 
30)
----------------------------------------------------------------------------------

         Key: HIB-125
         URL: http://jira.andromda.org/browse/HIB-125
     Project: Hibernate Cartridge
        Type: Bug
    Versions: 3.1-RC1    
    Reporter: coffee li
 Assigned to: Carlos Cuenca 


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

Code: 
            <key foreign-key="${entity.tableName}_INHERITANCE_FKC">             
       
                <column name="$entity.subclassKeyColumn" 
sql-type="$identifier.sqlType"/> 
            </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: 

Code: 
    [sql] [ERROR] Failed to execute: alter table SIMPLE_KNOWLEDGE add 
constraint 
 SIMPLE_KNOWLEDGE_INHERITANCE_FKC foreign key (ID) references KNOWLEDGE 
    [sql] [ERROR] java.sql.SQLException: ORA-00972: identity is too long 



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.andromda.org/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
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-devel mailing list
Andromda-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-devel

Reply via email to