Re: AW: Persistent stored in Context
Michael Nash <[email protected]> Mon, 20 Sep 2004 15:39:34 -0400
| Newsgroups | gmane.comp.java.keel.user |
|---|---|
| Organization | JGlobal Limited |
| Message-ID | <[email protected]> |
Gene, Aleks: You could define an associated bean class for the persistent, then make that bean class persistent. Then the system will keep the bean and the persistent in sync with each other. Mike On Mon, 2004-09-20 at 15:56, Vidakovic Aleksandar wrote: > I guess that iterating over all fields and storing a Map is not what yo= u wanted to hear?! >=20 > ;-) >=20 > I don't see why this shouldn't be possible... is there any danger that = resources like connections aren't released or something like that (->all?= )? >=20 > Would it be possible to have a Map object where you put your persistent= , and you store the map in the context...?!? >=20 > Anyway, I reviewed my code (thanks Gene... ;-) and I think I might need= this, too... now I only store an ID and retrieve the persistent every ti= me I need it. >=20 > Aleks >=20 > -----Urspr=C3=BCngliche Nachricht----- > Von: Gene McCullough [mailto:[email protected]] > Gesendet: Montag, 20. September 2004 16:13 > An: Keel Users > Betreff: [Keel User] Persistent stored in Context >=20 >=20 > I've got several models that lookup the same persistent. So, I was > wondering if maybe I should just stash the persistent in the context.=20 > However, on accomplishing this, I find out that Persistent is not > Serializable, and i get an exception (java.lang.IllegalStateException t= o > be precise). >=20 > I'd appreciate any comments from anyone on wether this is good, bad, or > indifferent (the storing of persistent in the context), to know if I > should proceed with making this work, or just keep passing the key alon= g > in parameters. I'm usually for the "if it ain't broke, don't fix it" > method of maintenance, but i'm still early in development and would lik= e > to iron it out now if worth it. >=20 > TIA > gene >=20 > _______________________________________________ > User mailing list > [email protected] > http://lists.keelframework.org/listinfo.cgi/user-keelframework.org > _______________________________________________ > User mailing list > [email protected] > http://lists.keelframework.org/listinfo.cgi/user-keelframework.org