Reputation: 103
I am working on a spring boot project. I have entities like bellow:
class Entity extends AbstractEntity{
}
Entity.java is in my project. AbstractEntity.class comes from another library. I was using eclipselink to generate metamodel. I had no problem because eclipselink does not even generate the AbstractEntity so it generates only:
class Entity_ {
}
I migrate my projet from eclipselink to hibernate. Hibernate generates well my Entity class but not the AbstractEntity class (which is not in my project). It generates somthing like this:
class Entity_ extends AbstractEntity_ {
}
Since AbstractEntity was not generated so I had cannot found symbol AbstractEntity_ error.
Actually I don't need AbstractEntity to be generated. So is there a way to ignore it or at least to generate it so i avoid this problem.
Upvotes: 1
Views: 1181
Reputation: 16420
I guess AbstractEntity
is annotated with @MappedSuperclass
or @Entity
? In that case you are out of luck. The only possible "workaround" is to create this AbstractEntity_
by hand.
Upvotes: 0