users@jaxb.java.net

Re: jaxb 2.1.4 plural property names

From: jesse crossley <jesse.crossley_at_gmail.com>
Date: Tue, 28 Aug 2007 15:17:57 -0700 (PDT)

so now that the rest of my development team is trying to build my new
modules, this problem is really killing me...
it seems that i can't control the "simpler & better" mode of JAXB:
using jdk1.5.0_12 with jaxp-api-1.4.2, jaxp-ri-1.4.2, and jaxb-api-2.1.4
(are all jaxb 2.1 api jars equal?) added to my jre/lib/endorsed directory
and using the maven-jaxb2-plugin-0.4 along with jaxb-impl-2.1.4
(v2.1.4-b02-fcs, according to generated code)
then when i generate classes from the soap envelope.xsd, i get a Body.java
with a getAny() method, but my teammembers end up with a getAnies() method.
we have the same pom.
we have the same jdk+endorsed.
we *may* have different files in our .m2/repos,
but i just deleted mine and tried again and my build succeeded.

so how can i control the plural property names? is there some configuration
i can do for the maven-jaxb2-plugin? do i need to use an older version of
the plugin, or a different version of jaxb? i really want to continue using
latest&greatest, but i'll hafta back us up if i can't lockdown the property
name issue. it doesn't really matter to us if it's singular or plural; it
just hasta be consistent on all environments.

any insight anyone has would be most helpful.



jesse crossley wrote:
>
> have these gone back to singular names in the 2.1.4 release?
>
> my lists have gone from
> List<CircleRecord> getCircleRecords()
> back to List<CircleRecord> getCircleRecord()
> and i was wondering why...
>

-- 
View this message in context: http://www.nabble.com/jaxb-2.1.4-plural-property-names-tf4321622.html#a12377508
Sent from the java.net - jaxb users mailing list archive at Nabble.com.