Re: [ebean] Using UUID / GUID for primary key (MySQL)

287 views
Skip to first unread message

Rob Bygrave

unread,
Mar 20, 2013, 8:59:07 PM3/20/13
to eb...@googlegroups.com

If you use a UUID type as your @Id like below then below Ebean will generate UUID values.

@Id
java.util.UUID id;




Cheers, Rob.


On 21 March 2013 10:40, Igor Romanov <pha...@gmail.com> wrote:
How can I automatically generate GUID Ids using Ebean and MySQL?
Is there a value for @GeneratedValue(generator) I can use?
If not, I would appreciate a hint on where to look for implementing this.

--
 
---
You received this message because you are subscribed to the Google Groups "Ebean ORM" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ebean+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Igor Romanov

unread,
Mar 21, 2013, 5:44:19 PM3/21/13
to eb...@googlegroups.com
Thank you, that worked out great.
Reply all
Reply to author
Forward
0 new messages