We're updating the issue view to help you get more done. 

Proxy initialization should be fail-fast when accidentially initializing from event listeners or interceptor

Description

Proxy initialization done in event listeners (at least post-update) with an entity that has a mapped collection seems to result in

1 org.hibernate.AssertionFailure: collection [role-of-collection] was not processed by flush()

at flush time.

By googling up problems like the above assertion failure seems that other people than me have spent quite a time searching for the origin of this problem; for me it was using a toString() of an uninitialized proxy.

Environment

Hibernate 3.2.2

Status

Assignee

Unassigned

Reporter

Joonas Koivunen

Components

Affects versions

3.3.2

Priority

Major