Runtime enhancement fails

2009-06-14 Thread Udi
Hey, I upgraded the OpenJPA version from 1.0.1 to 1.2.0 Now my application fails due to missing no-args constructor. I checked and noticed that the enhancer works on a persistence.xml locating in another jar (which is part of my application, but not the wanted xml). My persistence.xml is in the sa

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 Tylenda wrote: > Yu Wang, > > Try using "@GeneratedValue(strategy=GenerationType.AUTO)". This should > automaticall

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 lo