openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From femski <hypert...@yahoo.com>
Subject Problem with generating IDs from table
Date Wed, 27 Jun 2007 09:51:11 GMT

Folks !

I am using following table-generator to generate primary key IDs:

<table-generator name="ObjId" table="ObjId_Gen" pk-column-name="seq_name"
value-column-name="value" pk-column-value="ObjId"/>

Then I use it in usual way:

    @Id @GeneratedValue(strategy=GenerationType.TABLE,generator="ObjId")

Problem is OpenJPA is looking for column "value0" in the table. Toplink
correctly generated ID from "value" column. 

Is this a bug or am I missing something ?

thanks,

-Sanjay
-- 
View this message in context: http://www.nabble.com/Problem-with-generating-IDs-from-table-tf3987295.html#a11321459
Sent from the OpenJPA Users mailing list archive at Nabble.com.


Mime
View raw message