The idea of silently having an object always persisted is certainly an appealing one.
Shame it doesn't work so well in practice, in order to avoid issues of persisting an object (or multiple related objects) in an inconsistent state we need some form of transactions, or "checkpoints" where a session is manually flushed/saved. That's usually where the problems begin, especially with the involvement of threads... On 13 July 2010 14:35, Fabrizio Giudici <fabrizio.giud...@tidalwave.it>wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > > >> Ya, tell me about it... but even though hibernate is a very good > >> example here, I think we can extend it to most (if not all) > >> frameworks. You have to work to their likings and if you need > >> something different, you're in trouble... > > > > There are big conceptual differences. Some frameworks are very open > and modular, so you can pick only what you need and like (e.g. Spring, > of which you can use only a subset). So, what matters is the > granularity of the functions that the framework delivers. > Unfortunately, "persistence" is conceptually a single and > simple-to-define function ("I'd like to manipulate objects as I'd do > in Java and have them surviving an application shutdown"), but all the > problems arise from inside thus a framework focused on it never fully > satisfies you. > > - -- > Fabrizio Giudici - Java Architect, Project Manager > Tidalwave s.a.s. - "We make Java work. Everywhere." > java.net/blog/fabriziogiudici - www.tidalwave.it/people > fabrizio.giud...@tidalwave.it > -----BEGIN PGP SIGNATURE----- > Version: GnuPG/MacGPG2 v2.0.14 (Darwin) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iEYEARECAAYFAkw8a7MACgkQeDweFqgUGxd2ggCfbN+vTIDq3mzx00oVHtW5s/Ix > GpgAn0kvaRQdukTX7m892NZKE5XFfo4M > =N0UG > -----END PGP SIGNATURE----- > > -- > You received this message because you are subscribed to the Google Groups > "The Java Posse" group. > To post to this group, send email to javapo...@googlegroups.com. > To unsubscribe from this group, send email to > javaposse+unsubscr...@googlegroups.com<javaposse%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/javaposse?hl=en. > > -- Kevin Wright mail/google talk: kev.lee.wri...@gmail.com wave: kev.lee.wri...@googlewave.com skype: kev.lee.wright twitter: @thecoda -- You received this message because you are subscribed to the Google Groups "The Java Posse" group. To post to this group, send email to javapo...@googlegroups.com. To unsubscribe from this group, send email to javaposse+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/javaposse?hl=en.