-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: hbm2ddl problem with HSQL
PostPosted: Wed Feb 20, 2008 2:04 pm 
Newbie

Joined: Mon Jan 08, 2007 10:28 am
Posts: 11
Hibernate version: 3.2.2.ga

Mapping documents: parent/children relation :
@Entity
public class InstalledOffer {
...
@ManyToOne
@JoinColumn(name = "parentInstalledOffer_fk")
private InstalledOffer parentInstalledOffer;
...}

Full stack trace of any exception that occurs:
Code:
2008/02/20 18:49:06,098 ERROR SchemaUpdate               Unsuccessful: alter table InstalledBaseElement add constraint FK95D4A73133D78F00 foreign key (parentInstalledOffer_fk) references InstalledBaseElement
2008/02/20 18:49:06,098 ERROR SchemaUpdate               Constraint already exists in statement [alter table InstalledBaseElement add constraint FK95D4A73133D78F00 foreign key (parentInstalledOffer_fk) references InstalledBaseElement]


Name and version of the database you are using: HSQLDB 1.8.0.7 and 1.8.0.1


Hi,

We have a problem when we create or update a HSQLDB Schema with hbm2ddl.
The same schema is created without any problem on MySQL and Oracle.
It seems that the error messages are related to the parent/children relations of our persistent model. I illustrate just one error case but we have 3 parent/children relations, and 6 ERROR messages (2x3).
We don't know if it is a real problem or should be considered as a WARNING because our unit tests are OK.

Best regards,
Rudy


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.