I would like to use Criteria API in my new project and from what I understood, I also need to do annotation processing. Since there Java 5 on the server, how is this possible using Java 5 and Maven?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The annotation processing API from Java 6 (JSR 269) is different different from Java 5 (JSR 175) and I don’t think you can run a Java 6
Processorusing theaptcommand from Java 5 (and I assume the various implementations are all using the Java 6 API).So your options are IMO:
Depending on what’s possible for you and the chosen implementation, I could expend the Maven part if required.