openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pinaki Poddar <>
Subject Re: Still not working
Date Fri, 14 May 2010 08:32:08 GMT

OPENJPA_SEQUENCE_TABLE is the table to generate unique identifier for
persistent classes.
You can configure OpenJPA to define this table 
1. Use
   <property name="openjpa.jdbc.SynchronizeMappings"

   in persistence.xml configuration.

2. Or create the sequence table directly. The following DDL is for MySQL 

CREATE TABLE `openjpa_sequence_table` (
  `ID` tinyint(4) NOT NULL,
  `SEQUENCE_VALUE` bigint(20) default NULL,

3. Run
   $ java org.apache.openjpa.jdbc.kernel.TableJDBCSeq
with persistence.xml as property argument to define the table

  Usage: java org.apache.openjpa.jdbc.kernel.TableJDBCSeq
	[-properties/-p <properties file or resource>]
	[-<property name> <property value>]*
	-action/-a <add | drop | get | set> [value]

4. Please post your persistence.xml if none of the above works

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

View raw message