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