Questions tagged [jaxb2-basics]

JAXB2 Basics is an open source project which implements plugins and tools for JAXB 2.x reference implementation.

JAXB2 Basics is an open source project which implements plugins and tools for JAXB 2.x reference implementation. JAXB2 Basics is a part of the JAXB2 Commons project.

The implementation of JAXB2 plugins is available in this JAXB2 Basic project.

67 questions
0
votes
1 answer

jaxb2 simplify plugin for xs:choice having same types

I'm trying to use jaxb2 basics simplify plugin for my schema to JAXB conversion. It works fine for the complex types like below. Each element is defined inside the xs:choice has different types (type1 and type2). sample.xsd (complex choice type with…
ulab
  • 1,079
  • 3
  • 15
  • 45
0
votes
1 answer

How to annotate enum using jaxb2-basics-annotate?

I'm using maven-jaxb2-plugin and jaxb2-basics-annotate plugins to auto generate POJOs from my xsd. I've successfully generated annotations in POJOs. I need to apply an annotation to a method in an enum but cannot figure out how to do it. xsd has, …
0
votes
1 answer

GWT and JAXB Basics Runtime

I am using CXF JAXB generated classes in a GWT application. I would like equals() and hashCode() to be added to the generated classes. I have successfully used the JAXB2 Basics Plugins…
ja6a
  • 416
  • 1
  • 6
  • 10
0
votes
2 answers

When extending JAXBEqualsStrategy, generated equals is different than when not extending

We extend JAXBEqualsStrategy via pom: -Xequals-equalsStrategyClass=com.acme.foo.CustomEqualsStrategy The CustomEqualsStrategy extends JAXBEqualsStrategy. After running MAVEN clean install generate-source in Eclipse (Keplar) our…
0
votes
1 answer

Using multiple @xmlattribute annotations in one java class

I saw many examples using multiple classes to define attributes at different levels. I have a lot of elements that need an additional entry in the XML, so it would make sense to have many files for this. My overall main goal is to add more data to…
blackpearl
  • 51
  • 1
  • 5
0
votes
1 answer

JAXB annox and getting error java.lang.NoSuchMethodError: com.sun.codemodel.JAnnotatable.annotations()Ljava/util/Collection

Hi I am using JAXB annox with ant xjc and getting the following error C:_Dev\build\abcSupplierDomain.xml:479: java.lang.NoSuchMethodError: com.sun.codemodel.JAnnotatable.annotations()Ljava/util/Collection; at org.jvnet.jaxb2`enter code…
user1631733
  • 111
  • 1
  • 3
  • 6
-1
votes
1 answer

Variables runtime error doubts solve it Runtim

I have started learning java and there is this one line which I am not getting clearly that - Variables are interpreted at runtime whereas values/constants at compile time ?? Can anyone explain this with suitable code..
1 2 3 4
5