Hi Jakob, it should work like this. Although I do not understand why a "QueryByIdentity" does have a constructor who accepts an Identity and an Object at same time. My personal preference would be to implement two constructors one accepting an Identity an the other accepting an Object, then trying to get his Identity. If he couldn't, throw an Exception.
Regards Thimo > -----Urspr�ngliche Nachricht----- > Von: Jakob Braeuchi [mailto:[EMAIL PROTECTED]] > Gesendet: Mittwoch, 2. Oktober 2002 16:44 > An: OJB Users List > Betreff: Re: Bug in QueryByIdentity > > > hi thimo, > > i did some changes in getSearchClass of QueryByIdentity, > please have a look at it and give me some feedback. > > thanks > jakob > > ----- Original Message ----- > From: "Thimo K�nig" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, October 01, 2002 2:42 PM > Subject: Bug in QueryByIdentity > > > When I'm using QueryByIdentity i get the following exception: > > 2002-10-01 14:40:01,155 ERROR [org.jboss.ejb.plugins.LogInterceptor] > TransactionRolledbackException, causedBy: > org.apache.ojb.broker.metadata.ClassNotPersistenceCapableException: > org.apache.ojb.broker.Identity not found in OJB Repository > > > > In my opinion this is a bug in the QueryByIdentity class. > > o The constructor should accept Identities but not Objects > or > o getSearchClass() should return the class of the object > encapsulated by the Identity and not Identity.class > > What do you think? > > Thimo > > -- > Thimo K�nig Dipl.-Ing.(FH) > ARMAX mindware GmbH > Bernh�user Strasse 3 > 70771 Leinfelden-Echterdingen > > Fon: 0711 7823996-14 > Fax: 0711 7823996-64 > [EMAIL PROTECTED] > http://www.armax.de -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
