[
http://jira.codehaus.org/browse/MHIBERNATE-68?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_123031
]
Srepfler Srgjan commented on MHIBERNATE-68:
-------------------------------------------
Same problem,
in the case where I'm using maven to generate the schema, I get generated a
table
CREATE TABLE breakdowns_breakdownreminders
(
breakdown_id bigint NOT NULL,
breakdownreminder_id bigint NOT NULL,
CONSTRAINT fk68476bed3c495961 FOREIGN KEY (breakdownreminder_id)
REFERENCES breakdownreminder (id) MATCH SIMPLE
ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT fk68476bedecd7d981 FOREIGN KEY (breakdown_id)
REFERENCES breakdowns (id) MATCH SIMPLE
ON UPDATE NO ACTION ON DELETE NO ACTION
)
and when I generate the database with the hibernate tools eclipse plugin I get
a
CREATE TABLE breakdownreminders
(
breakdown_id bigint NOT NULL,
breakdownreminder_id bigint NOT NULL,
CONSTRAINT fk626dd203c495961 FOREIGN KEY (breakdownreminder_id)
REFERENCES breakdownreminder (id) MATCH SIMPLE
ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT fk626dd20ecd7d981 FOREIGN KEY (breakdown_id)
REFERENCES breakdowns (id) MATCH SIMPLE
ON UPDATE NO ACTION ON DELETE NO ACTION
)
That is the same table but with a wrong name. This is not the only table that
manifests this error.
Ideas?
> hbm2ddl generates incomplete database
> -------------------------------------
>
> Key: MHIBERNATE-68
> URL: http://jira.codehaus.org/browse/MHIBERNATE-68
> Project: Maven 2.x Hibernate Plugin
> Issue Type: Bug
> Components: hbm2ddl
> Affects Versions: 2.0-alpha-2, 2.0
> Environment: windows xp
> Reporter: Srepfler Srgjan
> Assignee: Johann Reyes
>
> I've noticed when executing the hbm2ddl command (with both 2.0 and the 2.0
> alpha2) that certain tables don't get created thus generating errors. As I
> later tried the latest hibernate tools eclipse plugin, running the
> SchemaExport added the missing tables. Could this be an issue with the
> hibernate tools library that the maven-hibernate3-plugin depends on? I'm
> sorry that I can't attach my hbm mapping file as it's work related but if I
> can somehow collaborate on finding what the issue is I'd be glad to help.
> Thanks
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email