Issue Type: Bug Bug
Affects Versions: 4.1.9
Assignee: Unassigned
Components: metamodel
Created: 11/Feb/13 3:32 PM
Description:

When I try to export a database model it happen the follow errors:

  • ClassCastException exporting an unique key:
    java.lang.ClassCastException: org.hibernate.metamodel.relational.Column cannot be cast to org.hibernate.mapping.Column
    at org.hibernate.dialect.unique.DefaultUniqueDelegate.uniqueConstraintSql(DefaultUniqueDelegate.java:137)
  • Primary Keys are exported as Unique key
  • Sequences are not created
    Caused by: org.h2.jdbc.JdbcSQLException: Sequence "hibernate_sequence" not found; SQL statement:
    call next value for "hibernate_sequence" [90036-145]
    at org.h2.message.DbException.getJdbcSQLException(DbException.java:327)
Project: Hibernate ORM
Labels: metamodel
Priority: Major Major
Reporter: Janario Oliveira
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira