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
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
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
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
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
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
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