This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Other JSE/JEE APIs and the fly likes JaxB(How to create source with Accesstype.PROPERTY) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "JaxB(How to create source with Accesstype.PROPERTY)" Watch "JaxB(How to create source with Accesstype.PROPERTY)" New topic
Author

JaxB(How to create source with Accesstype.PROPERTY)

Kanchan Kumar Dey
Greenhorn

Joined: Oct 18, 2007
Posts: 19
Hi,

when I used Jaxb with xsd to generate java source it creates the same but with AccessType.Field on the type classes. The problem is while marshalling it enquires the fields but not the getter methods. This way I will not get a default value If I don't set it explicitly.

Is there a way to use JAXB to generate source with AccessType.Property(this will also place all the field level generated annotation at the property level) instead of AccessType.Field.

Thanks in advance.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JaxB(How to create source with Accesstype.PROPERTY)
 
Similar Threads
Can Data Binding with Jaxb do this?
JAXB ClassCastException
JAXB or Mapping XML to Java?
Autogenerating Castor Unmarshaller Mapping File
jaxb