Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 14:44
Alain Picard is currently offline Alain PicardFriend
Messages: 235
Registered: July 2009
Senior Member
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: Thu Jan 21 15:08:15 GMT 2021

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

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

Back to the top