I am starting a new project using JAXB and JPA annotations. I read with interest the posts discussing the pros and cons of mixing JAXB and JPA annotations in the same class.
Are there any recommendations that describe when to use field level annotations and when to use property level annotations or any arguments for a general choice of one approach over another? I believe field level annotations are cleaner and more readable; they are usually located at the top of the class and make it easy to understand how each field is presented in different contexts. However, besides this readability argument, are there any other things to consider when deciding where to comment?
source share