Build-time instrumentation breaks lazy="proxy"

Description

I have a mapping that contains a many-to-one lazy="proxy".
This alone works fine: I see $$EnhancerByCGLIB$$ as the type when I do a load

Once I add a lazy property to the mapping and do build-time cglib enhancement, it breaks.
Not only is the lazy property listed in $CGLIB_READ_WRITE_CALLBACK, but also my lazy="proxy" association. (i.e. no more proxy object)

This works fine in hibernate-3.1.2.

This was originally brought up here: http://forums.hibernate.org/viewtopic.php?t=958881

Please let me know if more info or a test case is needed.

Environment

None

Status

Assignee

Steve Ebersole

Reporter

Frank Grimes

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Critical
Configure