derby « HBM « JPA Q&A





1. constraint problems using apache derby and hbm2ddl    stackoverflow.com

We are using Apache Derby 10.5.3.0_1 and hbm2ddl with Hibernate 3.3.x I get the following constraints error while pre-loading the SQL on an embedded derby database. If I remove the primary key(id) ...

2. hibernate hbm2ddl boolean column typeCastException in dbunit    stackoverflow.com

I use an in memory Derby database with Hibernate to create the tables. My tests use dbunit to prepare the database with test data.

db.driverClass=org.apache.derby.jdbc.EmbeddedDriver
db.url=jdbc:derby:memory:myDb;create=true
hibernate.dialect=org.hibernate.dialect.DerbyDialect
hibernate.hbm2ddl.auto=create-drop
Hibernate seems to create a smallint column type ...

3. Schema is not dropped on hbmddl.auto = create.drop    stackoverflow.com

I am using hbmddl.auto set to create in the hibernate configuration file and using it to connect to the derby database in network mode (not embedded, don't know if that is ...