I have the same problem.
I have wrote simple application to reproduce it. See attacments, please (LazyHLoad.java - main class, hibernate.cfg.xml - hibernate configuration).
First, I executed sql:
insert into lazyhload$parent values(1);
insert into lazyhload$child values(1);
insert into party_role_contact values(1,1);
Then, started LazyHLoad.class.
As a result I can see following lines in console:
Hibernate: select lazyhload_0_.id as id1_1_0_ from LazyHLoad$Parent lazyhload_0_ where lazyhload_0_.id=?
Hibernate: select children0_.RC_ROLE_ID as RC1_1_1_, children0_.RC_CONTACT_ID as RC2_2_1_, lazyhload_1_.id as id1_0_0_ from PARTY_ROLE_CONTACT children0_ inner join LazyHLoad$Child lazyhload_1_ on children0_.RC_CONTACT_ID=lazyhload_1_.id where children0_.RC_ROLE_ID=?
Hibernate: delete from PARTY_ROLE_CONTACT where RC_ROLE_ID=?
and my PARTY_ROLE_CONTACT table becames empty.
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
Hello!
I have the same problem.
I have wrote simple application to reproduce it. See attacments, please (LazyHLoad.java - main class, hibernate.cfg.xml - hibernate configuration).
First, I executed sql:
insert into lazyhload$parent values(1);
insert into lazyhload$child values(1);
insert into party_role_contact values(1,1);
Then, started LazyHLoad.class.
As a result I can see following lines in console:
Hibernate: select lazyhload_0_.id as id1_1_0_ from LazyHLoad$Parent lazyhload_0_ where lazyhload_0_.id=?
Hibernate: select children0_.RC_ROLE_ID as RC1_1_1_, children0_.RC_CONTACT_ID as RC2_2_1_, lazyhload_1_.id as id1_0_0_ from PARTY_ROLE_CONTACT children0_ inner join LazyHLoad$Child lazyhload_1_ on children0_.RC_CONTACT_ID=lazyhload_1_.id where children0_.RC_ROLE_ID=?
Hibernate: delete from PARTY_ROLE_CONTACT where RC_ROLE_ID=?
and my PARTY_ROLE_CONTACT table becames empty.