commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject svn commit: r230533 - /jakarta/commons/proper/betwixt/trunk/xdocs/guide/examples.xml
Date Sat, 06 Aug 2005 07:47:55 GMT
Author: rdonkin
Date: Sat Aug  6 00:47:53 2005
New Revision: 230533

URL: http://svn.apache.org/viewcvs?rev=230533&view=rev
Log:
Changed calls in example to methods which are not deprecated.

Modified:
    jakarta/commons/proper/betwixt/trunk/xdocs/guide/examples.xml

Modified: jakarta/commons/proper/betwixt/trunk/xdocs/guide/examples.xml
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/betwixt/trunk/xdocs/guide/examples.xml?rev=230533&r1=230532&r2=230533&view=diff
==============================================================================
--- jakarta/commons/proper/betwixt/trunk/xdocs/guide/examples.xml (original)
+++ jakarta/commons/proper/betwixt/trunk/xdocs/guide/examples.xml Sat Aug  6 00:47:53 2005
@@ -109,8 +109,8 @@
         
         // Configure betwixt
         // For more details see java docs or later in the main documentation
-        beanWriter.getXMLIntrospector().setAttributesForPrimitives(false);
-        beanWriter.setWriteIDs(false);
+        beanWriter.getXMLIntrospector().getConfiguration().setAttributesForPrimitives(false);
+        beanWriter.getBindingConfiguration().setMapIDs(false);
         beanWriter.enablePrettyPrint();
         
         // Write example bean as base element 'person'
@@ -154,8 +154,8 @@
         
         // Configure the reader
         // If you're round-tripping, make sure that the configurations are compatible!
-        beanReader.getXMLIntrospector().setAttributesForPrimitives(false);
-        beanReader.setMatchIDs(false);
+        beanReader.getXMLIntrospector().getConfiguration().setAttributesForPrimitives(false);
+        beanReader.getBindingConfiguration().setMapIDs(false);
         
         // Register beans so that betwixt knows what the xml is to be converted to
         // Since the element mapped to a PersonBean isn't called the same, 



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message