Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » UUIDSequence
UUIDSequence [message #909526] Fri, 07 September 2012 05:18 Go to next message
Erdal Karaca is currently offline Erdal Karaca
Messages: 729
Registered: July 2009
Senior Member
I found the following page to customize the id generation using UUIDs:
http://wiki.eclipse.org/EclipseLink/Examples/JPA/CustomSequencing

However, the column type of the id field is an int:

@Id
@GeneratedValue(generator="system-uuid")
@Column(name="PROJ_ID")
private int id;

How is that supposed to work? Is that wrong?


Re: UUIDSequence [message #911338 is a reply to message #909526] Tue, 11 September 2012 08:19 Go to previous message
James Sutherland is currently offline James Sutherland
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

UUID must be a String not an int.

James : Wiki : Book : Blog : Twitter
Previous Topic:Exception handling
Next Topic:Unable to log bind parameters
Goto Forum:
  


Current Time: Mon Jul 28 04:33:10 EDT 2014

Powered by FUDForum. Page generated in 0.01893 seconds