Hi,

hsql does not support database based key generation.
Use another SM implementation e.g. SequenceManagerInMemoryImpl
see
http://db.apache.org/ojb/sequencemanager.html

regards,
Armin

----- Original Message -----
From: "Andreas Bohnert" <[EMAIL PROTECTED]>
To: "OJB Users List" <[EMAIL PROTECTED]>
Sent: Monday, September 08, 2003 3:24 PM
Subject: Exceptions with EJB Examples


> I'm working myself through the Deployment in EJB based applications -
> Tutorial, and finally I'm not sucessfull:(
>
> I'm working with Jboss 3.2.1, Hsqldb 1.7.1 and ojb rc3.
> I used the (like suggested..) the SequenceManagerNextValImpl but I was
> getting this one:
>
> 2003-09-08 15:14:03,421 ERROR [org.jboss.ejb.plugins.LogInterceptor]
> RuntimeException:
> 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.createSeq
uenc
> e(Unknown Source)
>  at
>
org.apache.ojb.broker.util.sequence.SequenceManagerNextValImpl.getUnique
Long
> (Unknown Source)
>  at
>
org.apache.ojb.broker.util.sequence.SequenceManagerNextValImpl.getUnique
Id(U
> nknown Source)
>  at
>
org.apache.ojb.broker.util.sequence.AbstractSequenceManager.getUniqueVal
ue(U
> nknown Source)
>  at
org.apache.ojb.broker.util.BrokerHelper.getAutoIncrementValue(Unknown
> Source)
>  at org.apache.ojb.broker.util.BrokerHelper.getValuesForObject(Unknown
> Source)
>
> The complete log is attached.
>
> I also tried another SequenceManager but without success.
>
> Thanks for any suggestions!
> andreas
>
>
>


------------------------------------------------------------------------
--------


> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to