I solved this issue. I mapped Getter instead of field.
public class StudentTClass {
//@EmbeddedId
private StudentTClassPK pk = new StudentTClassPK();
@EmbeddedId
public StudentTClassPK getPk() {
return pk;
}
More Related Contents:
- How to make a database listener with java?
- Avoid Jackson serialization on non fetched lazy objects
- Can someone explain mappedBy in JPA and Hibernate?
- Error creating bean with name ‘entityManagerFactory’ defined in class path resource : Invocation of init method failed
- How can I log SQL statements in Spring Boot?
- Spring Boot – Handle to Hibernate SessionFactory
- @PreUpdate and @Prepersist in hibernate/JPA (using session)
- No serializer found for class org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor
- Hibernate table not mapped error in HQL query
- Hibernate, iBatis, Java EE or other Java ORM tool
- What is the ‘best’ way to do distributed transactions across multiple databases using Spring and Hibernate
- java.lang.NoSuchMethodError: org.hibernate.SessionFactory.openSession()Lorg/hibernate/classic/Session
- Hibernate-sequence doesn’t exist
- mapping Hibernate query results to custom class?
- Spring 3.1 Hibernate 4 exception for Inheritance [cannot be cast to org.hibernate.mapping.RootClass]
- Java SE + Spring Data + Hibernate
- Spring hibernate template when to use and why?
- Change database schema during runtime based on logged in user
- Spring + Hibernate : a different object with the same identifier value was already associated with the session
- How to map sql native query result into DTO in spring jpa repository?
- Hibernate Criteria for Dates
- Autowiring in Spring bean (@Component) created with new keyword
- javax.transaction.Transactional vs org.springframework.transaction.annotation.Transactional
- What is meant by abstract=”true” in spring?
- how to set header no cache in spring mvc 3 by annotation
- How to rollback a database transaction when testing services with Spring in JUnit?
- Spring 3.1, Hibernate 4, SessionFactory
- hibernate two tables per one entity
- Array with UserType in Hibernate and PostgreSQL –> MappingException
- JPA: difference between @JoinColumn and @PrimaryKeyJoinColumn?