Subject | Firebird JPA Generator |
---|---|
Author | Csaba Ragasits |
Post date | 2007-11-27T13:34:29Z |
Hello,
I would like to manage a table with JPA (NB6RC2,
GlassFishV2,Firebird1.5x, Jaybird-2.1.1):
public class Ugyfel implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@SequenceGenerator( name = "GEN_UGYFEL", sequenceName = "GEN_UGYFEL" )
@GeneratedValue( strategy = GenerationType.AUTO, generator = "GEN_UGYFEL" )
@Column(name = "ID", nullable = false)
private Short id;
@Column(name = "BOSSKOD")
…
When I want add a new record I've a following error message:
[TopLink Info]: 2007.11.27 10:54:46.557--Not able to detect platform
for vendor name [Firebird 1.5-LI-V1.5.4.4910 Firebird 1.5/tcp
(fscmnet)/P10]. Defaulting to
[oracle.toplink.essentials.platform.database.DatabasePlatform]. The
database dialect used may not match with the database you are using.
Please explicitly provide a platform using property
toplink.platform.class.name.
PWC2775: Session attribute event listener threw exception
javax.persistence.PersistenceException: Exception [TOPLINK-7144]
(Oracle TopLink Essentials - 2.0 (Build b58g-fcs (09/07/2007))):
oracle.toplink.essentials.exceptions.ValidationException
Exception Description: GEN_UGYFEL: platform DatabasePlatform doesn't
support NativeSequence.
at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:239)
at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:93)
at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:126)
Have You got any ideas, how can I solve this problem?
Thanks,
Csaba
I would like to manage a table with JPA (NB6RC2,
GlassFishV2,Firebird1.5x, Jaybird-2.1.1):
public class Ugyfel implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@SequenceGenerator( name = "GEN_UGYFEL", sequenceName = "GEN_UGYFEL" )
@GeneratedValue( strategy = GenerationType.AUTO, generator = "GEN_UGYFEL" )
@Column(name = "ID", nullable = false)
private Short id;
@Column(name = "BOSSKOD")
…
When I want add a new record I've a following error message:
[TopLink Info]: 2007.11.27 10:54:46.557--Not able to detect platform
for vendor name [Firebird 1.5-LI-V1.5.4.4910 Firebird 1.5/tcp
(fscmnet)/P10]. Defaulting to
[oracle.toplink.essentials.platform.database.DatabasePlatform]. The
database dialect used may not match with the database you are using.
Please explicitly provide a platform using property
toplink.platform.class.name.
PWC2775: Session attribute event listener threw exception
javax.persistence.PersistenceException: Exception [TOPLINK-7144]
(Oracle TopLink Essentials - 2.0 (Build b58g-fcs (09/07/2007))):
oracle.toplink.essentials.exceptions.ValidationException
Exception Description: GEN_UGYFEL: platform DatabasePlatform doesn't
support NativeSequence.
at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:239)
at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:93)
at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:126)
Have You got any ideas, how can I solve this problem?
Thanks,
Csaba