Hello,
I'm trying to use Database sequences based implementation and receive an
exception below.
I'm using MySql. Primary field "ST_id" has "Autoincrement" option checked.
repository.xml:
Sequence Manager:
<sequence-manager
className="org.apache.ojb.broker.util.sequence.SequenceManagerNextValImpl">
<attribute attribute-name="autoNaming" attribute-value="true"/>
</sequence-manager>
Primary field:
<field-descriptor id="1" name="stateId" column="ST_id" jdbc-type="BIGINT"
primarykey="true" autoincrement="true"/>
Exception:
: org.apache.ojb.broker.metadata.ClassNotPersistenceCapableException: Could
not init Identity for given object
class com.iprs.core.countries.StatesVO: Could not get key value:
Could not grab next id, failed with
This feature is not supported by this implementation
Creation of new sequence failed with
This feature is not supported by this implementation
: This feature is not supported by this implementation
An exception has been caused by:
java.lang.UnsupportedOperationException: This feature is not supported by
this implementation
at
org.apache.ojb.broker.platforms.PlatformDefaultImpl.createSequenceQuery(Unkn
own Source)
at
org.apache.ojb.broker.util.sequence.SequenceManagerNextValImpl.createSequenc
e(Unknown Source)
at
org.apache.ojb.broker.util.sequence.SequenceManagerNextValImpl.getUniqueLong
(Unknown Source)
at
org.apache.ojb.broker.util.sequence.AbstractSequenceManager.getUniqueValue(U
nknown Source)
Any suggestions what's wrong?
Regards,
Mykola
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]