Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Using a HexString as Id

You can add your own custom sequence generator in EclipseLink through
creating your own Sequence (org.eclipse.persistence.sequencing) subclass and
adding it to your Session's DatabaseLogin using a SessionCustomizer.

You could also assign your id using a prePersist event, or directly from
your application.



Alexander Malic-2 wrote:
> 
> hello
> 
> With Hibernate I was able to use a 32 character Hex-String as Id for my
> Entities. (
> http://www.roseindia.net/hibernate/hibernateidgeneratorelement.shtml ),
> 
> How can this be done with Eclipse-Link?
> 
> regards and thanks in advance,
> alexander malic
> 


-----
---
http://wiki.eclipse.org/User:James.sutherland.oracle.com James Sutherland 
http://www.eclipse.org/eclipselink/
 EclipseLink ,  http://www.oracle.com/technology/products/ias/toplink/
TopLink 
Wiki:  http://wiki.eclipse.org/EclipseLink EclipseLink , 
http://wiki.oracle.com/page/TopLink TopLink 
Forums:  http://forums.oracle.com/forums/forum.jspa?forumID=48 TopLink , 
http://www.nabble.com/EclipseLink-f26430.html EclipseLink 
Book:  http://en.wikibooks.org/wiki/Java_Persistence Java Persistence 
-- 
View this message in context: http://www.nabble.com/Using-a-HexString-as-Id-tp19224658p19271409.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.



Back to the top