Enhancing entities fails when there is an enum field in the entity

2009-06-14 Thread Vasil
Hi I have the following entity: @Entity @Table(name = accounts_userfavorites) public class UserFavorite implements Serializable{ private static final long serialVersionUID = 7233246222509313691L; @Id @GeneratedValue(strategy=GenerationType.IDENTITY) private

Re: ID field auto generation issue for multiple databases supporting

2009-06-14 Thread wang yu
Milosz, I have tried @GeneratedValue(strategy=GenerationType.AUTO), it works fine for oracle but doesn't work for Derby. Regards, Yu Wang On Sat, Jun 13, 2009 at 7:19 PM, MiƂosz Tylendamtyle...@o2.pl wrote: Yu Wang, Try using @GeneratedValue(strategy=GenerationType.AUTO). This should