Using a javax.validation.constraints.NotNull constraint on a ManyToMany relation causes an AssertionFailure if the relatated entity also contains a ManyToMany relation to a third entity

Description

update on an entity with a javax.validation.constraints.NotNull constraint on a ManyToMany relation causes an AssertionFailure if the relatated entity also contains a ManyToMany relation to a third entity and all relations have the fetchtype lazy.

Here is the given entity structure:

this pseudocode causes the error:

See the attached testcase for more details

Environment

hibernate 3.5.1-final and hibernate 3.5.5.final
on oracle 10g

Activity

Show:
Brett Meyer
April 7, 2014, 5:44 PM

In an effort to clean up, in bulk, tickets that are most likely out of date, we're transitioning all ORM 3 tickets to an "Awaiting Test Case" state. Please see http://in.relation.to/Bloggers/HibernateORMJIRAPoliciesAndCleanUpTactics for more information.

If this is still a legitimate bug in ORM 4, please provide either a test case that reproduces it or enough detail (entities, mappings, snippets, etc.) to show that it still fails on 4. If nothing is received within 3 months or so, we'll be automatically closing them.

Thank you!

Hardy Ferentschik
April 7, 2014, 5:48 PM

I think this is still a legit issue. I am trying to have another look at it asap.

Cannot Reproduce

Assignee

Hardy Ferentschik

Reporter

Jan Viaccava

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure