Это мои зависимости pom от Hibernate и jpa:
Код: Выделить всё
org.hibernate
hibernate-core
5.4.12.Final
org.hibernate
hibernate-entitymanager
5.4.12.Final
org.hibernate.javax.persistence
hibernate-jpa-2.2-api
1.0.0.Beta2
org.hibernate
hibernate-jpamodelgen
5.4.12.Final
Теперь , когда я пытаюсь построить сборку, я получаю эту ошибку в некоторых сгенерированных классах в подмодуле:
Код: Выделить всё
package javax.annotation does not exist
cannot find symbol
symbol: class Generated
Код: Выделить всё
import javax.annotation.Generated;
import javax.persistence.metamodel.SingularAttribute;
import javax.persistence.metamodel.StaticMetamodel;
@Generated(value = "org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor")
@StaticMetamodel(MyClass.class)
public abstract class MyClass_ extends classExended {
public static volatile SingularAttribute codeI;
public static volatile SingularAttribute codeR;
public static volatile SingularAttribute codeV;
public static volatile SingularAttribute codeX;
}
Подробнее здесь: https://stackoverflow.com/questions/788 ... -hibernate