openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "klaasjan elzinga" <klaasjanelzi...@gmail.com>
Subject Re: Persisting new Entity returns NULL Id
Date Sat, 08 Dec 2007 09:35:25 GMT
Did you enhance the classes?

KlaasJan

On Dec 8, 2007 5:21 AM, Rahul Thakur <rahul.thakur.xdev@gmail.com> wrote:
> 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