Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b7N4ZDbUtA3ofqAqRV
11 lines
602 B
Plaintext
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'
|