Files
spring-data-demo/data-jpa-3-to-4/output/08-wiring-and-records-boot3.txt
T

11 lines
602 B
Plaintext

# Spring Boot 3.5.16
Spring Boot 3.5.16, Spring Data JPA 3.5.13, Hibernate 6.6.53.Final, Java 25
beans of type EntityManager: [jpaSharedEM_entityManagerFactory, jpaSharedEM_AWC_entityManagerFactory]
getBean(EntityManager.class) is a Spring shared proxy -> true
create a bean with constructor parameter (EntityManager anyName) -> injected the shared proxy
-- a record annotated @Entity
buildSessionFactory() -> succeeded
persist and commit -> ok
find by id in a new session -> throws org.hibernate.InstantiationException
No default constructor for entity 'com.ankurm.jpamig.WiringTest$RecordEntity'