Skip to main content



      Home
Home » Eclipse Projects » EclipseLink » SequenceGenerator(SequenceGenerator with a prefix)
SequenceGenerator [message #656791] Mon, 28 February 2011 10:40 Go to next message
Eclipse UserFriend
Hi,

I am using oracle database. All my tables uses sequence generator. One of my table customer has a sequence generator but needs a prefix for the primary key. If the sequence generated is 01 , I would like it to be saved as C01. I know in hibernate there is a prefix. Is there anything like that where I can add a prefix for the ID.

Any help is really appreciated.

Thanks.
Re: SequenceGenerator [message #657100 is a reply to message #656791] Tue, 01 March 2011 10:34 Go to previous message
Eclipse UserFriend
You may be able to use a Converter or a custom Sequence object to implement this.

You could also generate the id in your application, or through the prePersist event.
Previous Topic:Is there any deadlock bug fix for TopLink Essential?
Next Topic:SessionCustomizer in OSGi environments
Goto Forum:
  


Current Time: Sat Jul 05 11:33:57 EDT 2025

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

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

Back to the top