Hi all,

if the String argument is the result of As I said in my last mail, the PersistenceManager.newObjectIdInstance(Class pcClass, String str) failed executing toString on an object id instance.
With OJB,
newObjectIdInstance(Class pcClass, Identity.toString()) does not work!
We got a "java.io.IOException: Not in GZIP format".
We must use newObjectIdInstance(Class pcClass, Identity.serialize()).


But this method does not appear in the JDO specification :=(.
So, if one want to use ObjectId with JDO, its software application is dependant on OJB and can't be used with another OJB implementation.


I think it could be usefull to rename the Identity.toString() method and
to implement a new Identity.toString() method :

public String toString()
{
    return new String( serialize() );
}

In this case, OJB will become JDO compliant with ObjectId.
I don't know if the actual Identity.toString() method is often used but I think rename this method will not change a big part of OJB. Am I wrong?



Best Regards.


PS: Thanks to Thomas Mahler for its explanation.

--
Christophe Demarey,
Research engineer
OpenCCM project - http://www.objectweb.org/openccm
GOAL Team - CNRS/USTL/LIFL - http://www.lifl.fr/GOAL/
Universite des Sciences et Technologies de Lille
LIFL - UMR CNRS 8022- Batiment M3
59655 Villeneuve d'Ascq Cedex - FRANCE
Phone: +33 (0)32043 4728
Fax  : +33 (0)32043 6566


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



Reply via email to