clarencen/lshift — Issue #51: Migration does not work with Oracle
Author: clarencen
Created: 2011-11-14 22:41:30+00:00
State: open

The DB migration does not work with Oracle because the Oracle dialect does not support identity columns:

@@@
Caused by: org.hibernate.MappingException: Dialect does not support identity key generation
at org.hibernate.dialect.Dialect.getIdentityColumnString(Dialect.java:506) ~[hibernate-core-3.6.0.Final.jar:3.6.0.Final]
at org.hibernate.dialect.Dialect.getIdentityColumnString(Dialect.java:496) ~[hibernate-core-3.6.0.Final.jar:3.6.0.Final]
at net.lshift.hibernate.migrations.SQLStringHelpers.generateIdentityColumnString(SQLStringHelpers.java:40) ~[hibernate-migrations-0.1-SNAPSHOT.jar:na]
at net.lshift.hibernate.migrations.CreateTableBuilder.toSql(CreateTableBuilder.java:96) ~[hibernate-migrations-0.1-SNAPSHOT.jar:na]
at net.lshift.hibernate.migrations.CreateTableBuilder.prepare(CreateTableBuilder.java:87) ~[hibernate-migrations-0.1-SNAPSHOT.jar:na]
at net.lshift.hibernate.migrations.SingleStatementMigrationElement.apply(SingleStatementMigrationElement.java:28) ~[hibernate-migrations-0.1-SNAPSHOT.jar:na]
at net.lshift.hibernate.migrations.MigrationBuilder.apply(MigrationBuilder.java:82) ~[hibernate-migrations-0.1-SNAPSHOT.jar:na]
at net.lshift.diffa.kernel.config.AddPersistentDiffsMigrationStep$.migrate(HibernateConfigStorePreparationStep.scala:399) ~[diffa-kernel-0.9-SNAPSHOT.jar:na]
@@@