Since Java 9 javax.annotation.Generated has been renamed to javax.annotation.processing.Generated so classes generated by Hibernate's JPA Model generator throw compile errors.