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 Ziv Yankowitz <zi...@traiana.com> on 2004/02/04 17:51:19 UTC
OJb sequence manager - Force computation of unique values
Folks,
we are using the High/Low sequence manager implementation and we try to compute the id in
advance with the following code :
PersistenceBroker broker = ((HasBroker) tx).getBroker();
Identity oid = new Identity(object, broker);
we encounter in the following error error :
org.apache.ojb.broker.metadata.ClassNotPersistenceCapableException: Can not init Identity for given object
what can be the problem?
thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
Re: OJb sequence manager - Force computation of unique values
Posted by Armin Waibel <ar...@apache.org>.
Hi,
Ziv Yankowitz wrote:
> Folks,
>
> we are using the High/Low sequence manager implementation and we try to compute the id in
> advance with the following code :
>
> PersistenceBroker broker = ((HasBroker) tx).getBroker();
> Identity oid = new Identity(object, broker);
>
> we encounter in the following error error :
>
> org.apache.ojb.broker.metadata.ClassNotPersistenceCapableException: Can not init Identity for given object
>
Say that class of given object could not be found in repository. But
maybe there is another reason for that failure, please post the whole
stack trace and the error log before failure.
regards,
Armin
> what can be the problem?
>
> thanks.
>
>
>
> ---------------------------------------------------------------------
> 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