db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Francois Orsini <francois.ors...@gmail.com>
Subject Re: Embedded Derby w/Hibernate
Date Fri, 22 May 2009 17:43:13 GMT
Hi Nicola,

Here is an example of hibernate configuration file that operates in embedded

Are you setting the Hibernate 'hbm2ddl.auto' config property at all?

Once your schema is created and if you had 'hbm2ddl.auto=create-drop', you
should set Hibernate 'hbm2ddl.auto' config property to 'create' and issue a
connection using 'IJ' like in the example above.

Note that once the database has been created with its schemas, etc, you can
remove the ';create=true' on Hibernate's JDBC connection URL (

Hope this helps.


On Thu, May 21, 2009 at 10:53 AM, Nicola DiPasquale <
nicholas.dipasquale@gmail.com> wrote:

> Hello, I am attempting to use an embedded Derby instance wrapped with
> Hibernate and Hibernate Annotations.  However, after the tables are
> initialized by Hibernate, the first time that I attempt to access the
> tables Derby throws exceptions that claims the tables and views do not
> exist.  When I restart the application everything works fine (because
> the tables already exist in the database on load).  How can I possibly
> alleviate this problem (without pulling Derby out into server mode)?
> Thanks.
> -Nick DiPasquale

View raw message