openjpa-users mailing list archives

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

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

    @Id
    @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:
     org.springframework.orm.jpa.support.JpaDaoSupport
to use the JpaTemplate.

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

Thanks in advance,

Rahul


Mime
View raw message