Hi Stephen,

Could you please send some more info on this?

Do you have a stack trace or some common scenario when the duplicate identity exception is occurring?

I’m not a Castor developer, but just interested in the matter.

 

Regards,

Emir

 

 

 

-----Original Message-----
From: Stephen Ince [mailto:[EMAIL PROTECTED]
Sent: 24. travanj 2004
2:32
To: [EMAIL PROTECTED]
Subject: [castor-dev] Key generator -- Duplicated Identity is generated!

 

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