[Teneo]: Hibernate fails to add index and create table. [message #603534] |
Mon, 12 March 2007 16:08 |
Duncan Alexander Messages: 90 Registered: July 2009 |
Member |
|
|
Hi,
I have successfully managed to create a Hibernate mapping through Teneo and then intialize an
HbDatastore which in turn creates the relevant database tables. However during the database creation
I am seeing four errors in the console BUT the initialization does seem to complete successfully.
Errors:
2007-03-12 15:42:17,359 ERROR org.hibernate.tool.hbm2ddl.SchemaUpdate[main] - Unsuccessful: alter
table `base_extendable` add index FKFD27C9A266397A3C (`extendable_superclass_e_id`), add constraint
FKFD27C9A266397A3C foreign key (`extendable_superclass_e_id`) references `kf_keyfamily`
(`structure_urn`)
2007-03-12 15:42:17,375 ERROR org.hibernate.tool.hbm2ddl.SchemaUpdate[main] - Can't create table
'.\sdmx_teneo\#sql-170_c.frm' (errno: 150)
2007-03-12 15:42:17,406 ERROR org.hibernate.tool.hbm2ddl.SchemaUpdate[main] - Unsuccessful: alter
table `base_extendable` add index FKFD27C9A27BCB6302 (`extendable_superclass_e_id`), add constraint
FKFD27C9A27BCB6302 foreign key (`extendable_superclass_e_id`) references `base_structure`
(`maintainable_urn`)
2007-03-12 15:42:17,406 ERROR org.hibernate.tool.hbm2ddl.SchemaUpdate[main] - Can't create table
'.\sdmx_teneo\#sql-170_c.frm' (errno: 150)
Setup: Teneo0.75, EMF2.2, Hibernate 3.2, JDK1.5
Persistence Options:
PersistenceOptions.PERSISTENCE_XML="annotations.xml"
PersistenceOptions.QUALIFY_ENTITY_NAME= PersistenceOptions.QUALIFY_ENTITY_NAME_NSPREFIX
PersistenceOptions.INHERITANCE_MAPPING="JOINED"
PersistenceOptions.JOIN_TABLE_NAMING_STRATEGY="unique"
Does this indicate some type of illegal referencing in the model ?
It may be that I should be asking this question on a Hibernate list instead as Teneo has already
done its work by this stage.
Duncan
|
|
|
Powered by
FUDForum. Page generated in 0.02153 seconds