I am using the castors key generator to generate key ids. I am intermittently getting duplicate key ids. Does anyone know of a method to have castor refresh the key generator cache if it becomes out of sync with the database? I use a plethora of databases, oracle, db2, sql server, and hsqldb.
 
 
org.exolab.castor.jdo.PersistenceException: Nested error: Key Generator Failure. Duplicated Identity is generated!'
Mapping.xml entry
 
<key-generator name="HIGH-LOW">
<param name="table" value="seq"/>
<param name="key-column" value="seq_table_name"/>
<param name="value-column" value="max_pk_value"/>
<param name="grab-size" value="15"/>
</key-generator>

Reply via email to