|Sequences and entity beans [message #214632]
||Sat, 31 May 2008 18:48
| Raster Mising name
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?
Powered by FUDForum
. Page generated in 0.05416 seconds