@SqlResultSetMapping
annotation should not be put on a POJO. Put it at (any) @Entity
class. “Unknown SqlResultSetMapping [foo]” tells you, that JPA provider doesn’t see any mapping under name ‘foo’. Please see another answer of mine for the correct example
More Related Contents:
- Mapping PostgreSQL JSON column to a Hibernate entity property
- Error creating bean with name ‘entityManagerFactory’ defined in class path resource : Invocation of init method failed
- How to choose the id generation strategy when using JPA and Hibernate
- JPQL Create new Object In Select Statement – avoid or embrace?
- Hibernate, @SequenceGenerator and allocationSize
- What is the difference between Unidirectional and Bidirectional JPA and Hibernate associations?
- How to remove entity with ManyToMany relationship in JPA (and corresponding join table rows)?
- JPA/Hibernate Native Queries do not recognize Parameters
- What is the easiest way to ignore a JPA field during persistence?
- @Transactional method called from another method doesn’t obtain a transaction
- @PreUpdate and @Prepersist in hibernate/JPA (using session)
- Hibernate bidirectional @ManyToOne, updating the not owning side not working
- JPA how to make composite Foreign Key part of composite Primary Key
- Spring boot JPA insert in TABLE with uppercase name with Hibernate
- Getting [SQLITE_BUSY] database file is locked with select statements
- Silently ignored remove()
- Hibernate/JPA DB Schema Generation Best Practices
- How to set a default query timeout with JPA and Hibernate?
- Is it possible to dynamically define column names in Hibernate / JPA?
- Change database schema during runtime based on logged in user
- Hibernate: “Field ‘id’ doesn’t have a default value”
- How to map sql native query result into DTO in spring jpa repository?
- Persisting UUID in PostgreSQL using JPA
- Batch inserts with JPA/EJB3
- Name attribute in @Entity and @Table
- Why should anybody put annotations on the getters or setters when using JPA to map the classes?
- Hibernate using JPA (annotated Entities) and liquibase
- Mapping JPA or Hibernate projection query to DTO (Data Transfer Object)
- JPA: Override Auto generated ID [duplicate]
- TransactionRequiredException Executing an update/delete query