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 R is currently offline Raster RFriend
Messages: 77
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 Apr 18 14:26:52 GMT 2024

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

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

Back to the top