RE: [betwixt] How can I make betwixt accept any attribute id as an element id?

2005-01-11 Thread Jason Wood
betwixt accept any attribute id as an element id? Jason Wood schrieb: Well, I know you can do the following to remove the betwixt id ... beanWriter.getBindingConfiguration().setMapIDs(false); Then if you want to make the getId() value of your bean an attribute

Re: [betwixt] How can I make betwixt accept any attribute id as an element id?

2005-01-10 Thread Christian Aust
Hi Jason, Jason Wood schrieb: or if you don't want to make all primitive values attribute as the above will do ... in a .betwixt file write ... ?xml version='1.0' encoding='UTF-8' ? info element name='YourElementName' attribute name='id' property='Id'/ addDefaults/ /element /info There ways to

Re: [betwixt] How can I make betwixt accept any attribute id as an element id?

2005-01-10 Thread Christian Aust
Jason Wood schrieb: Well, I know you can do the following to remove the betwixt id ... beanWriter.getBindingConfiguration().setMapIDs(false); Then if you want to make the getId() value of your bean an attribute ... beanWriter.getXMLIntrospector().getConfiguration().setAttributesForPrimitive

[betwixt] How can I make betwixt accept any attribute id as an element id?

2005-01-07 Thread Christian Aust
Hi, I'd like to use betwixt to serialize data beans to xml. Those beans represent database structures mapped with hibernate, so all of the first-rank entities sport some property id, just like this: public long getId() Those classes implement equals() as such it considers two elements equal if

RE: [betwixt] How can I make betwixt accept any attribute id as an element id?

2005-01-07 Thread Jason Wood
do you want to make the id your from your bean an attribute or id the betwixt generated? -Original Message- From: Christian Aust [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 11:00 AM To: commons-user@jakarta.apache.org Subject: [betwixt] How can I make betwixt accept any

Re: [betwixt] How can I make betwixt accept any attribute id as an element id?

2005-01-07 Thread Christian Aust
betwixt accept any attribute id as an element id? Hi, I'd like to use betwixt to serialize data beans to xml. Those beans represent database structures mapped with hibernate, so all of the first-rank entities sport some property id, just like this: public long getId() Those classes implement equals

RE: [betwixt] How can I make betwixt accept any attribute id as an element id?

2005-01-07 Thread Jason Wood
with that approach. J -Original Message- From: Christian Aust [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 1:24 PM To: Jakarta Commons Users List Subject: Re: [betwixt] How can I make betwixt accept any attribute id as an element id? Hi Jason, Am 07.01.2005 um 18:10 schrieb Jason