23 lines
2.0 KiB
Plaintext
Executable File
23 lines
2.0 KiB
Plaintext
Executable File
# LazyInitializationTest + ProxyIdentityTest -- filtered run output (DEMO log lines only)
|
|
# Full raw run: proxy-lazy-and-identity-run.txt
|
|
|
|
getReference() runtime class: com.ankurm.hibernatedemo.proxy.ProxyPublisher$HibernateProxy
|
|
select pp1_0.id,pp1_0.name from proxy_publisher pp1_0 where pp1_0.id=?
|
|
Hibernate: select pp1_0.id,pp1_0.name from proxy_publisher pp1_0 where pp1_0.id=?
|
|
select pp1_0.id,pp1_0.name from proxy_publisher pp1_0 where pp1_0.id=?
|
|
Hibernate: select pp1_0.id,pp1_0.name from proxy_publisher pp1_0 where pp1_0.id=?
|
|
select pb1_0.id,p1_0.id,p1_0.name,pb1_0.title from proxy_book pb1_0 left join proxy_publisher p1_0 on p1_0.id=pb1_0.publisher_id where pb1_0.id=?
|
|
Hibernate: select pb1_0.id,p1_0.id,p1_0.name,pb1_0.title from proxy_book pb1_0 left join proxy_publisher p1_0 on p1_0.id=pb1_0.publisher_id where pb1_0.id=?
|
|
verbatim exception class: org.hibernate.LazyInitializationException
|
|
verbatim exception message: Cannot lazily initialize collection of role 'com.ankurm.hibernatedemo.proxy.ProxyBook.reviews' with key '1' (no session)
|
|
select pb1_0.id,p1_0.id,p1_0.name,pb1_0.title from proxy_book pb1_0 left join proxy_publisher p1_0 on p1_0.id=pb1_0.publisher_id where pb1_0.id=?
|
|
Hibernate: select pb1_0.id,p1_0.id,p1_0.name,pb1_0.title from proxy_book pb1_0 left join proxy_publisher p1_0 on p1_0.id=pb1_0.publisher_id where pb1_0.id=?
|
|
to-one proxy verbatim message: Could not initialize proxy [com.ankurm.hibernatedemo.proxy.ProxyBook#3] - no session
|
|
getReference() proxy class: com.ankurm.hibernatedemo.proxy.ProxyBook$HibernateProxy
|
|
select pb1_0.id,p1_0.id,p1_0.name,pb1_0.title from proxy_book pb1_0 left join proxy_publisher p1_0 on p1_0.id=pb1_0.publisher_id where pb1_0.id=?
|
|
Hibernate: select pb1_0.id,p1_0.id,p1_0.name,pb1_0.title from proxy_book pb1_0 left join proxy_publisher p1_0 on p1_0.id=pb1_0.publisher_id where pb1_0.id=?
|
|
Hibernate.unproxy(proxy) class: com.ankurm.hibernatedemo.proxy.ProxyBook
|
|
|
|
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0 -- LazyInitializationTest
|
|
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0 -- ProxyIdentityTest
|