Fixing “Class has two properties of the same name” exception
I started to learn JAXB from Vogella tutorial site. I changed the package and project name, and running the example generated following exception. Solution: After some googling I figured out, that I have to move annotation to the getter method. That solves above exception. The Bookstore.java will be look like this: