RE: [Opensymphony-oscache] OSCache + Hibernate

"March, Andres" <[email protected]> Fri, 16 Sep 2005 09:33:40 -0700
Newsgroups gmane.comp.java.open-symphony.os-cache
Message-ID <7EA6A25EC6360A488E0EBB5F3F21A0DC0493392A@mail-sd4.ad.soe.sony.com>
Oscache uses the toString() for the key of the cache.  Therefore it
needs to create a unique identifier for the object being stored.

> -----Original Message-----
> From: Steven Sagaert [mailto:[email protected]]
> Sent: Friday, September 16, 2005 7:05 AM
> To: [email protected]
> Subject: [Opensymphony-oscache] OSCache + Hibernate
>=20
> Hi,
> In the documentation for using the OSCache patch for Hibernate it is
said:
>=20
> NOTE: object identifiers must have well-behaved toString() methods.
>=20
> What does this mean EXACTLY?
> As far as I know the requirements that Hibernate poses are:
> 1) object id classes must be Serializable
> 2) you must define a sensible equals() & hascode() for the object
class
> (this is used for comparison by the cache)
>=20
> So where does this toString() requirement come from? OSCache?
>=20
> ---------------------------------------------------------------------
> Posted via Jive Forums
>
http://forums.opensymphony.com/thread.jspa?threadID=3D6804&messageID=3D15=
146
#1
> 5146
>=20
>=20
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]