FAQ
Hi Andrus,

Is this feature a replacement for Hessian serialization? What are the
benefits of using XStream (is it faster, etc)?

Thanks

2009/9/11 <aadamchik@apache.org>
Author: aadamchik
Date: Fri Sep 11 01:32:14 2009
New Revision: 813647

URL: http://svn.apache.org/viewvc?rev=813647&view=rev
Log:
prototyping (de)serializer based on XStream

cleanup/refactoring

Modified:
cayenne/sandbox/cayenne-serialization/pom.xml

Modified: cayenne/sandbox/cayenne-serialization/pom.xml
URL:
http://svn.apache.org/viewvc/cayenne/sandbox/cayenne-serialization/pom.xml?rev=813647&r1=813646&r2=813647&view=diff

==============================================================================
--- cayenne/sandbox/cayenne-serialization/pom.xml (original)
+++ cayenne/sandbox/cayenne-serialization/pom.xml Fri Sep 11 01:32:14 2009
@@ -21,9 +21,9 @@
<artifactId>cayenne-parent</artifactId>
<version>3.0-SNAPSHOT</version>
</parent>
- <artifactId>cayenne-xstream</artifactId>
- <name>Serialization Framework based on XStream</name>
- <description>A Framework for customizable rule-based serialization
of persistent object subgraphs based on XStream.</description>
+ <artifactId>cayenne-serialization</artifactId>
+ <name>Serialization Framework for Persistent Objects</name>
+ <description>A Framework for customizable rule-based serialization
of persistent object subgraphs, currently based on XStream.</description>
<packaging>jar</packaging>
<dependencies>
<dependency>


--
Andrey

Search Discussions

  • Andrus Adamchik at Sep 13, 2009 at 2:12 pm
    This is possible theoretically, but I haven't thought deeply about
    Hessian replacement scenario. I am personally planning to use it as a
    framework for backup/restore solution for huge databases that allows
    to apply custom rules to data filtering and processing of the data.

    If anything, this may end up being a replacement of
    org.apache.cayenne.xml package. XStream provides a well-defined
    (de)serialization lifecycle that allows to build various interceptors
    and custom serializers. Also it has "plugins" for serialization
    formats. So for example out of the box it can produce either XML or
    JSON.

    Comparing that to Hessian, my wild guess is that XStream won't be
    faster (even with compact JSON output), but it certainly more
    developer-friendly (cleaner API, better documentation, etc).

    Andrus

    On Sep 13, 2009, at 7:43 AM, Andrey Razumovsky wrote:
    Hi Andrus,

    Is this feature a replacement for Hessian serialization? What are the
    benefits of using XStream (is it faster, etc)?

    Thanks

    2009/9/11 <aadamchik@apache.org>
    Author: aadamchik
    Date: Fri Sep 11 01:32:14 2009
    New Revision: 813647

    URL: http://svn.apache.org/viewvc?rev=813647&view=rev
    Log:
    prototyping (de)serializer based on XStream

    cleanup/refactoring

    Modified:
    cayenne/sandbox/cayenne-serialization/pom.xml

    Modified: cayenne/sandbox/cayenne-serialization/pom.xml
    URL:
    http://svn.apache.org/viewvc/cayenne/sandbox/cayenne-serialization/pom.xml?rev=813647&r1=813646&r2=813647&view=diff

    =
    =
    =
    =
    =
    =
    =
    =
    =
    =====================================================================
    --- cayenne/sandbox/cayenne-serialization/pom.xml (original)
    +++ cayenne/sandbox/cayenne-serialization/pom.xml Fri Sep 11
    01:32:14 2009
    @@ -21,9 +21,9 @@
    <artifactId>cayenne-parent</artifactId>
    <version>3.0-SNAPSHOT</version>
    </parent>
    - <artifactId>cayenne-xstream</artifactId>
    - <name>Serialization Framework based on XStream</name>
    - <description>A Framework for customizable rule-based
    serialization
    of persistent object subgraphs based on XStream.</description>
    + <artifactId>cayenne-serialization</artifactId>
    + <name>Serialization Framework for Persistent Objects</name>
    + <description>A Framework for customizable rule-based
    serialization
    of persistent object subgraphs, currently based on XStream.</
    description>
    <packaging>jar</packaging>
    <dependencies>
    <dependency>


    --
    Andrey

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupdev @
categoriescayenne
postedSep 13, '09 at 11:44a
activeSep 13, '09 at 2:12p
posts2
users2
websitecayenne.apache.org

People

Translate

site design / logo © 2022 Grokbase