openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rahul Thakur <>
Subject Persisting new Entity returns NULL Id
Date Sat, 08 Dec 2007 04:21:32 GMT

I have an persistable entity which has an identifier property setup with 
following annotations:

    @GeneratedValue( strategy = GenerationType.IDENTITY)
    @Column( name = "ID" )
    private Long id;

When I attempt to persist a new instance, I get back a NULL id.

I am not sure if it matters but I am using Spring 2.5 for wiring up 
application beans and my Store implementation extends from:
to use the JpaTemplate.

I am new with openjpa, and appreciate any pointers - where should I 
start investigating this?

Thanks in advance,


View raw message