You need to use the custom attribute as follows:

<attribute attribute-name="sequence-name" attribute-value="SEQ_JOBS" />

inside your class descriptor

----- Original Message -----
From: "Ryan Kennedy" <[EMAIL PROTECTED]>
To: "OJB Users List" <[EMAIL PROTECTED]>
Sent: Monday, November 04, 2002 11:08 AM
Subject: SequenceManagerOracleImpl


> For some reason I can't seem to get the Oracle sequence manager to work. I
> have the following in my OJB.properties:
>
>
>
SequenceManagerClass=org.apache.ojb.broker.util.sequence.SequenceManagerOrac
l
> eImpl
>
> I have this in my repository_user.xml:
>
>     <class-descriptor class="Job" table="JOBS" sequence-name="SEQ_JOBS">
>
> I construct a new Job object and call broker.store(job); to persist it to
the
> database. When I do that, I get the following exception:
>
>     java.lang.Exception: sequence-name attribute is not defined in
>     the class descriptor - Job
>
> It appears that it can't find my sequence-name attribute, but I have it
there
> in my class descriptor. Any ideas?
>
> Ryan Kennedy
> Software Engineer
> Jel, Inc.
> web. www.jel.net
>
> --
> To unsubscribe, e-mail:   <mailto:ojb-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail: <mailto:ojb-user-help@;jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:ojb-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:ojb-user-help@;jakarta.apache.org>

Reply via email to