Why isn't my Entity Table mapped in JPA Hibernate?
问题 I have an Entity: @Entity(name = "target_group") public class TargetGroup extends AbstractEntity { private String name; private String description; @ManyToMany(fetch = FetchType.LAZY) private List<Customer> customers = new ArrayList<>(); getter.setter... } And I have a code, to get a list about the groups with the stableId (which is in the Abstract Class): public TargetGroup getTargetGroupByStableId(String stableId) { TargetGroup tg = null; try { Query q = em.createQuery("SELECT tg FROM