Subject | Re: [Firebird-Java] JPA, Hibernate and Firebird |
---|---|
Author | Marcelo Siqueira |
Post date | 2007-12-06T05:28Z |
Laurent Duperval escreveu, em 5/12/2007 20:15:
I found myself with the same problem. So far I decided to use the TABLE
identifier strategy and allow JPA to use a table to hold the primary
keys counters. I know this is not the optimal solution, but it will
allow me to make the same code runs with Firebird and MySQL.
Marcelo
> * I also get an error that says:Hi Laurent,
> javax.persistence.PersistenceException:
> org.hibernate.MappingException: Dialect does not support identity
> key generation. That, I understand. Is there a way to make this
> work without resorting to using a UUID (32 char) generator? Is
> there a generator that can be used/defined specifically for
> running under Firebird?
I found myself with the same problem. So far I decided to use the TABLE
identifier strategy and allow JPA to use a table to hold the primary
keys counters. I know this is not the optimal solution, but it will
allow me to make the same code runs with Firebird and MySQL.
Marcelo