Customize JAXB

Posted on 2006-04-20
Last Modified: 2008-03-17
How to add implementation of equals and hashCode method to the jaxb generated classes ?.
Question by:tiger321
    LVL 86

    Expert Comment

    That would entirely depend on the particular nature and purpose of the object(s)
    LVL 30

    Expert Comment

    A sample code is given here, you need to write your own for your classes (based on what has to be done there):

    Author Comment

    I know how to overide those methods ,
    My qustion is how to configure jaxb to add those methods to the generated classes.
    LVL 30

    Accepted Solution

    I doubt if it can. You will need to add them manually perhaps.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    twoTwo  challenge 35 74
    PGP Decryption code using Bouncy Castle jars 11 72
    linearIn  challenge 23 55
    Modeling a class in java 5 24
    For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
    Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
    Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
    This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now