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"
valie="buildSchema(ForeignKeys=true)"/>
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,
PRIMARY KEY (`ID`)
)
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
-----
Pinaki
--
View this message in context:
http://openjpa.208410.n2.nabble.com/Still-not-working-tp5049761p5049997.html
Sent from the OpenJPA Developers mailing list archive at Nabble.com.