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 18:48
Raster Mising name is currently offline Raster Mising nameFriend
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: Sun Nov 23 17:31:43 GMT 2014

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

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