Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dali » Sequence validator
Sequence validator [message #607400] Thu, 01 November 2007 00:13
Erich  is currently offline Erich Friend
Messages: 10
Registered: July 2010
Junior Member

I was using Eclipse 3.2 with the webtools plugin and my project validated
and ran fine.

However, I just upgraded to Eclipse 3.3 europa with the webtools plugin,
and now I am having problems getting the JPA annotation validator to
validate my primary key generator names.


@Table(name = "tblaccount")
public class AccountBean {
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator =
@Column(name = "accountid")
private long accountId;

I get an error on the @GeneratedValue annotation:

'No generator named "tblaccount_accountid_seq" is defined in the
persistence unit'.

So, I searched for that error on google and found two references in the
Eclipse documentation for DALI. And I quote from the DALI manual:

Quoting from the manual under the Error messages section:

'No generator named "<GENERATOR_NAME>" is defined in persistence unit.

You created a persistence entity that uses sequencing, but did not define
include the sequence generator in the psersistence.xml file. Synchronize
the persistence.xml file with your current project.

See "Synchronizing classes" for more information.'

That section tells you to synchronize persistence.xml, which does
absolutely nothing. There are no sequences added to that file (nor can I
find any documentation that suggests that they should be listed in the
file) and nothing else in the file is changed.

So, I started thinking that I have the wrong database driver (3.3 is after
all running Java6 by default) so I tried some different drivers, including
the JDBC4 driver, but still, It won't validate the sequence names, nor
will it compile the project.

For reference, I'm using PostgreSQL, I am connected to the database during
validation, and yes it does validate and compile under the previous
version of WTK.

Anyone have any ideas?
Previous Topic:Integrating EJB 3.0 (Hibernate) into Eclipse
Next Topic:Problems with Dali 1.0
Goto Forum:

Current Time: Tue May 22 23:28:28 GMT 2018

Powered by FUDForum. Page generated in 0.01893 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top