You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Mahler Thomas <th...@itellium.com> on 2003/09/08 13:43:31 UTC

FW: Good/Best Practices with OJB


> -----Original Message-----
> From: Partani, Sunil [mailto:sunil.partani@retek.com]
> Sent: Tuesday, September 02, 2003 11:31 PM
> To: thomas.mahler@itellium.com
> Subject: RE: Good/Best Practices with OJB
> 
> 
> Hi, I was curious if you have any examples on how to use 
> nested fields in repository.xml? I am trying to map a nested 
> field in the manner shown in the OJB tutorial.
>       <field-descriptor
>          name="objectId::nestedId"
>          column="NESTEDID"
>          jdbc-type="INTEGER"
>       />
> 
> But I keep getting an error about objectId::nestedId.
> 
> Any help would be appreciated.
> 
> Thanks,
> Sunil
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org


Re: Exceptions with EJB Examples

Posted by Andreas Bohnert <ab...@online.de>.
I don't know why, but's working now...
sorry about that - just forget it

andreas

----- Original Message ----- 
From: "Andreas Bohnert" <ab...@online.de>
To: "OJB Users List" <oj...@db.apache.org>
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.createSequenc
> e(Unknown Source)
>  at
>
org.apache.ojb.broker.util.sequence.SequenceManagerNextValImpl.getUniqueLong
> (Unknown Source)
>  at
>
org.apache.ojb.broker.util.sequence.SequenceManagerNextValImpl.getUniqueId(U
> nknown Source)
>  at
>
org.apache.ojb.broker.util.sequence.AbstractSequenceManager.getUniqueValue(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: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org


Re: Exceptions with EJB Examples

Posted by Armin Waibel <ar...@code-au-lait.de>.
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" <ab...@online.de>
To: "OJB Users List" <oj...@db.apache.org>
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: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org


Exceptions with EJB Examples

Posted by Andreas Bohnert <ab...@online.de>.
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.createSequenc
e(Unknown Source)
 at
org.apache.ojb.broker.util.sequence.SequenceManagerNextValImpl.getUniqueLong
(Unknown Source)
 at
org.apache.ojb.broker.util.sequence.SequenceManagerNextValImpl.getUniqueId(U
nknown Source)
 at
org.apache.ojb.broker.util.sequence.AbstractSequenceManager.getUniqueValue(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