Oracle « HBM « JPA Q&A





1. Failed to generate scripts with hbm2ddl for Oracle and MSSQL    forum.hibernate.org

Hi, I am trying to generate the DDL scripts with hibernatetool/hbm2ddl for Oracle and MS SQLServer. I use Hibernate Entity Manager as JPA provider and my classes are annotated using JPA (no hibernate-specific stuff, just plain JPA). Generation of mssql passes without any problems, but when it comes to oracle, the following error is issued: Code: [hibernatetool] Nov 4, 2009 1:42:22 ...

3. problem running hibernate.hbm2ddl.auto=update against Oracle    forum.hibernate.org

When setting the hibernate property hibernate.hbm2ddl.auto to 'update' an exception is thrown (see stack trace at bottom). I also get the same exception if instead I try to use ant to update the database script. An excerpt of my ant script is; But if i set the hibernate property ...

4. hbm2ddl generates both unique and primary key (Oracle!)    forum.hibernate.org

AS 4.0.5.GA Seam 1.1.5.GA Oracle 9i While trying to build and run the Seam Blog example, I stumbled across this hibernate-generated ddl, which is illegal in Oracle: create table HitCount ( blog_name varchar2(255 char) not null, pageviews number(10,0) not null, primary key (blog_name), <------- Oracle objects to unique (blog_name) <------- this ) For a while, I thought it was a bug ...