Re: Different behaviour of SequenceManager in rc5 and 1.0.1

"Christian Eugster" <[email protected]> Sat, 29 Sep 2007 16:44:19 +0200
Newsgroups gmane.comp.jakarta.ojb.user
Message-ID <[email protected]>
Hi Armin,

thank you for the hint. Now I have changed all the id field's default value of my objects to null instead of '0'. I updated OJB to 1.0.4 now (good luck!). When I try to store an object I get now the following Exception:

[org.apache.ojb.broker.accesslayer.JdbcAccessImpl] ERROR: PersistenceBrokerException during the execution of materializeObject: Can't generate primary key values for given Identity org.apache.ojb.broker.util.sequence.HighLowSequence{SEQ_pos_product_group}
Can't generate primary key values for given Identity org.apache.ojb.broker.util.sequence.HighLowSequence{SEQ_pos_product_group}
[org.apache.ojb.broker.util.sequence.SequenceManagerHighLowImpl] ERROR: Can't lookup new HighLowSequence for field id using sequence name SEQ_pos_product_group
Can't generate primary key values for given Identity org.apache.ojb.broker.util.sequence.HighLowSequence{SEQ_pos_product_group}

As I see in the documentation the table ojb_hl_seq has only changed the type of max_key from Integer to Bigint. Is there another place where I have to look?

Thanks!

Christian

-- 
****************************
Christian Eugster
Grissian Widum 14
I-39010 Tisens
--------------------------------------
Handy Schweiz: 0041 79 594 85 45
Handy Italia: 0039 333 888 77 64
Email: [email protected]


GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail