Yes, just annotate the field with @GeneratedValue. However in
TopLink-Essentials you can only generate a sequence value for one field in
the class, it does not need to be the id, but only one field is supported.
sud-3 wrote:
>
> Is it possible to have JPA (toplink-essentials) auto-generate a column
> value for a non Id field?
>
--
View this message in context: http://www.nabble.com/using-generated-value-with-a-non-Id-field-tf4339169.html#a12393263
Sent from the java.net - glassfish persistence mailing list archive at Nabble.com.