I’d expect one of two things to be the reason:
-
either you don’t have Payment listed in your hibernat.cfg.xml or where ever you config your mapped classes.
-
another reason might be the confusion between javax…Entity and org.hibernate….Entity. Make sure you use the first one.
More Related Contents:
- How to map calculated properties with JPA and Hibernate
- Difference between @MapKey, @MapKeyColumn and @MapKeyJoinColumn in JPA and Hibernate
- JPA JoinColumn vs mappedBy
- How to fix the Hibernate “object references an unsaved transient instance – save the transient instance before flushing” error
- Difference between FetchType LAZY and EAGER in Java Persistence API?
- How to map a composite key with JPA and Hibernate?
- Hibernate Annotations – Which is better, field or property access?
- How to map an entity field whose name is a reserved word in JPA
- What’s the difference between JPA and Hibernate? [closed]
- What is the solution for the N+1 issue in JPA and Hibernate?
- Can someone explain mappedBy in JPA and Hibernate?
- JPA CascadeType.ALL does not delete orphans
- Bypass GeneratedValue in Hibernate (merge data not in db?)
- When and why JPA entities should implement the Serializable interface?
- How to solve the LazyInitializationException when using JPA and Hibernate
- I found JPA, or alike, don’t encourage DAO pattern
- Getting Database connection in pure JPA setup
- Hibernate – @ElementCollection – Strange delete/insert behavior
- In which case do you use the JPA @JoinTable annotation?
- Hibernate/JPA – annotating bean methods vs fields [duplicate]
- Postgresql UUID supported by Hibernate?
- How do I properly cascade save a one-to-one, bidirectional relationship on primary key in Hibernate 3.6
- JPA: Implementing Model Hierarchy – @MappedSuperclass vs. @Inheritance
- Hibernate use of PostgreSQL sequence does not affect sequence table
- Is it possible to dynamically define column names in Hibernate / JPA?
- Doing an “IN” query with Hibernate
- Specifying an Index (Non-Unique Key) Using JPA
- Hibernate triggering constraint violations using orphanRemoval
- Change Table Name of an Entity on runtime? [duplicate]
- How to map one class to different tables using hibernate/jpa annotations