Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Sequences and entity beans
Sequences and entity beans [message #214632] Sat, 31 May 2008 14:48
Raster Mising name is currently offline Raster Mising name
Messages: 75
Registered: July 2009
Member
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")
@Column(updatable=false)

Why was the syntax not -

@GeneratedValue(strategy=SEQUENCE, sequenceName = "Some_SEQ")
@Column(updatable=false)

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


Current Time: Thu Aug 28 19:32:46 EDT 2014

Powered by FUDForum. Page generated in 0.01984 seconds