Skip to main content



      Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Teneo] Error with generated FK name, name too long
[Teneo] Error with generated FK name, name too long [message #605281] Sat, 05 May 2007 10:44
Eclipse UserFriend
Martin,

I am getting the following errors when trying to get one of my ecore
model initialized with the table_per_class strategy:

SchemaUpdate.java: 155 : Unsuccessful: alter table `xmlall` add index
FK315EF3B3B4B9A2E8c5350b174b5c68cd4745c1713725705c4ee2773d2f 81e2a
(`modelelement_stereotype_e_id`), add constraint
FK315EF3B3B4B9A2E8c5350b174b5c68cd4745c1713725705c4ee2773d2f 81e2a
foreign key (`modelelement_stereotype_e_id`) references `stereotype` (e_id)
ERROR [04 May 2007 09:50] SchemaUpdate.java: 155 : Unsuccessful: alter
table `xmlall` add index
FK315EF3B3B4B9A2E8c5350b174b5c68cd4745c1713725705c4ee2773d2f 81e2a
(`modelelement_stereotype_e_id`), add constraint
FK315EF3B3B4B9A2E8c5350b174b5c68cd4745c1713725705c4ee2773d2f 81e2a
foreign key (`modelelement_stereotype_e_id`) references `stereotype` (e_id)
ERROR [04 May 2007 09:50] SchemaUpdate.java: 156 : Identifier name
'FK315EF3B3B4B9A2E8c5350b174b5c68cd4745c1713725705c4ee2773d2 f81e2a' is
too long
ERROR [04 May 2007 09:50] SchemaUpdate.java: 156 : Identifier name
'FK315EF3B3B4B9A2E8c5350b174b5c68cd4745c1713725705c4ee2773d2 f81e2a' is
too long

I saw a method in PersistenceOptions, getMaximumSqlNameLength, would
that help avoid this?

Also is there possible to implement a different naming strategy for FK
names that would be more meaningful?

Thanks
Alain
Previous Topic:[Teneo+Hibernate] IAction: the chosen operation is currently not available
Next Topic:[Teneo] Help needed with inherance mapping
Goto Forum:
  


Current Time: Fri Jul 04 16:10:58 EDT 2025

Powered by FUDForum. Page generated in 0.03411 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top