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
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