tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agumbrecht <>
Subject Re: Hibernate IdentifierGenerator
Date Sun, 06 Jul 2014 13:09:01 GMT
Hi Herau,

Try this as a generic solution:

@GeneratedValue(generator = "uuid")
@GenericGenerator(name = "uuid", strategy = "uuid")
@Column(name = "id", unique = true)
private String id;

I'm not so sure that OpenJPA supports custom generators out of the box, so I
will need to look into that.

You can still use Hibernate in TomEE, so no need to change your app if you
want to stick with Hibernate.

See the example here:


    Andy Gumbrecht

    TomEE treibt Tomitribe ! |
View this message in context:
Sent from the TomEE Users mailing list archive at

View raw message