openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From femski <>
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 ?


View this message in context:
Sent from the OpenJPA Users mailing list archive at

View raw message