Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » UUIDSequence
UUIDSequence [message #909526] Fri, 07 September 2012 09:18 Go to next message
Erdal Karaca is currently offline Erdal KaracaFriend
Messages: 854
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 12:19 Go to previous message
James Sutherland is currently offline James SutherlandFriend
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: Sat Apr 20 03:35:33 GMT 2024

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

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

Back to the top