Re: Storing values that are relationship IDs (or how should i make anabstract history method)
Joshua Marker <[email protected]>
| Newsgroups | gmane.comp.web.webobjects.devel |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 I see you've worked on this a lot. Has anyone suggested you implement it with journaling, which can do all this automatically? You might find it much easier. On Jan 18, 2006, at 21:04, Matt Kime wrote: > Here's the idea... > > I'm trying to create an abstract class to implement a history > system. I can have a object return its entity name and its > attribute values. I want to store these in a table that consists of: > > entityName > entityID > entityValue > > --- > > this way any class based on this abstract class will be able to > save its history. while this will work perfectly fine for > attributes, i'm concerned as to how it will work with to-one > relationships. yes, i can save the id value in the entityValue > field. but how will i turn this into a relationship again? > > i hope i've explained this well. > > thanks, > matt > > > _______________________________________________ > WebObjects-dev mailing list > [email protected] > http://www.omnigroup.com/mailman/listinfo/webobjects-dev -----BEGIN PGP SIGNATURE----- Version: PGP Universal 2.0.5 iQEUAwUBQ+oka6hZ7Y0V7IpdAQh5ewf4lcGLGN9KdMaAjv/V0pRO7/owmlPG5sdr Unla6MYbUNlgKUt1kP1kdKkdroW3S/xjxbUbQVVIW54tCcfZTUdAyutWZyKr3lle z6uua+5v1Utphw42uCUiMjunxLp3/mnt4uATO9fz6CDMMrYp9O/sERhxK3mFpbU7 29PEhYZBb4e7vBpy+4cV6SE973RPqt0zC7cKZrBQs3rrT/1ElQWXIKH6w6PFzn7T QS+RirXQONheEZ1z5Eh48wij/ohCs1UtmrGL2Gy6METR1VzNuAKLGyX1Vdg7HEl7 9NDMb7kMsGdx9RuRCsLUw/XjaqoHe/eSUdebiGqtx6Ralkkf3m9D =EcNH -----END PGP SIGNATURE-----