This content has been marked as final.
Show 1 reply
-
1. Re: Database independent persistence
vjtech20nn Jun 12, 2009 9:26 AM (in response to cfly)How about following parameters for @GeneratedValue annotations.
strategy = GenerationType.AUTO
http://www.jboss.org/community/wiki/GeneratedValue
http://docs.jboss.org/hibernate/stable/core/reference/en/html_single/#mapping-declaration-id-generator
How about two different mapping file for this Entity depending on environment ? downside is you have 2 create mapping configuration files.
If you come across a solution, please share.