[Teneo] Error with generated FK name, name too long [message #605281] |
Sat, 05 May 2007 10:44 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03411 seconds