FAQ
I suggest to deprecate XML serialization package in 3.1 and remove it in 3.2. There were past discussions why it is not a working solution for real life applications (DOM, singletons, etc.). Also real life serialization/deserialization patterns are different from what we provide there (at least I couldn't adopt it to any of my own needs). And finally there's nobody around willing to address these deficiencies.

Some time back I started on an alternative serialization package, currently checked in to sandbox:

http://svn.apache.org/repos/asf/cayenne/sandbox/cayenne-serialization/

It uses XStream and is based on an idea similar to ROP - serialization specification is defined like to prefetches in a select query - there's a root entity, and there's a bunch of prefetch paths for related objects that need to be serialized together with the root objects. It works, but has some of rough edges and missing features. Also would be really cool to port that to JAXB, as JAXB is a part of J2SE these days. As I won't be able to work on this any time soon, it requires other motivated individuals to make it production-ready.

In any event I don't see a point in keeping the existing XML package regardless of the outcome of the replacement, and would like to phase it out.

Andrus

Search Discussions

  • Michael Gentry at Dec 2, 2010 at 2:36 pm
    I've never actually used XML serialization with Cayenne. I suggest,
    though, asking on the user list who is using it and their thoughts on
    the matter. Should be a bigger net there.

    mrg

    On Thu, Dec 2, 2010 at 9:27 AM, Andrus Adamchik wrote:
    I suggest to deprecate XML serialization package in 3.1 and remove it in 3.2. There were past discussions why it is not a working solution for real life applications (DOM, singletons, etc.). Also real life serialization/deserialization patterns are different from what we provide there (at least I couldn't adopt it to any of my own needs). And finally there's nobody around willing to address these deficiencies.

    Some time back I started on an alternative serialization package, currently checked in to sandbox:

    http://svn.apache.org/repos/asf/cayenne/sandbox/cayenne-serialization/

    It uses XStream and is based on an idea similar to ROP - serialization specification is defined like to prefetches in a select query - there's a root entity, and there's a bunch of prefetch paths for related objects that need to be serialized together with the root objects. It works, but has some of rough edges and missing features. Also would be really cool to port that to JAXB, as JAXB is a part of J2SE these days. As I won't be able to work on this any time soon, it requires other motivated individuals to make it production-ready.

    In any event I don't see a point in keeping the existing XML package regardless of the outcome of the replacement, and would like to phase it out.

    Andrus
  • Andrus Adamchik at Dec 2, 2010 at 2:46 pm
    I'll forward it to user@. Others please feel free to comment here on dev@ as well.

    Andrus

    On Dec 2, 2010, at 4:35 PM, Michael Gentry wrote:
    I've never actually used XML serialization with Cayenne. I suggest,
    though, asking on the user list who is using it and their thoughts on
    the matter. Should be a bigger net there.

    mrg

    On Thu, Dec 2, 2010 at 9:27 AM, Andrus Adamchik wrote:
    I suggest to deprecate XML serialization package in 3.1 and remove it in 3.2. There were past discussions why it is not a working solution for real life applications (DOM, singletons, etc.). Also real life serialization/deserialization patterns are different from what we provide there (at least I couldn't adopt it to any of my own needs). And finally there's nobody around willing to address these deficiencies.

    Some time back I started on an alternative serialization package, currently checked in to sandbox:

    http://svn.apache.org/repos/asf/cayenne/sandbox/cayenne-serialization/

    It uses XStream and is based on an idea similar to ROP - serialization specification is defined like to prefetches in a select query - there's a root entity, and there's a bunch of prefetch paths for related objects that need to be serialized together with the root objects. It works, but has some of rough edges and missing features. Also would be really cool to port that to JAXB, as JAXB is a part of J2SE these days. As I won't be able to work on this any time soon, it requires other motivated individuals to make it production-ready.

    In any event I don't see a point in keeping the existing XML package regardless of the outcome of the replacement, and would like to phase it out.

    Andrus

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupdev @
categoriescayenne
postedDec 2, '10 at 2:28p
activeDec 2, '10 at 2:46p
posts3
users2
websitecayenne.apache.org

2 users in discussion

Andrus Adamchik: 2 posts Michael Gentry: 1 post

People

Translate

site design / logo © 2022 Grokbase