Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 310
  • Last Modified:

Customize JAXB

How to add implementation of equals and hashCode method to the jaxb generated classes ?.
0
tiger321
Asked:
tiger321
  • 2
1 Solution
 
CEHJCommented:
That would entirely depend on the particular nature and purpose of the object(s)
0
 
Mayank SAssociate Director - Product EngineeringCommented:
A sample code is given here, you need to write your own for your classes (based on what has to be done there):

http://www-128.ibm.com/developerworks/java/library/j-jtp05273.html
0
 
tiger321Author Commented:
I know how to overide those methods ,
My qustion is how to configure jaxb to add those methods to the generated classes.
0
 
Mayank SAssociate Director - Product EngineeringCommented:
I doubt if it can. You will need to add them manually perhaps.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now