Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Sequences and entity beans
Sequences and entity beans [message #214632] Sat, 31 May 2008 18:48
Raster Mising name is currently offline Raster Mising nameFriend
Messages: 75
Registered: July 2009
I am using WTP Dali with EJB3 for my entity beans.
I have been referrring to the documentation with the WTP in eclipse.

I was able to figure out how to configure the generator for id fields from
a sequence using the following annotations.

@GeneratedValue(strategy=SEQUENCE, generator = "Sequence_Generator")
@SequenceGenerator(name="Sequence_Generator", sequenceName = "Some_SEQ")

Why was the syntax not -

@GeneratedValue(strategy=SEQUENCE, sequenceName = "Some_SEQ")

Why the extra tags?
Previous Topic:EJB3|Schemaexport
Next Topic:EJB3 generate entities
Goto Forum:

Current Time: Thu Jun 21 08:53:38 GMT 2018

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

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

Back to the top