Skip to content

Commit

Permalink
test that reproduces GPHIBERNATEFILTER-20
Browse files Browse the repository at this point in the history
  • Loading branch information
Dónal Murtagh committed Mar 2, 2016
1 parent 847db17 commit 3143243
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,21 @@ class StatusFilterSpec extends IntegrationSpec {
then:
problems.size() == 1
}

@Issue('GPHIBERNATEFILTER-20')
void 'collection filters are incorrectly applied to join table'() {

// enable the collection filters in each class
Problem.enableHibernateFilter('collectionFilter')
Condition.enableHibernateFilter('collectionFilter')

when:
List<Problem> problems = Problem.executeQuery("""
SELECT p
FROM ${Problem.simpleName} p
JOIN p.conditions""")

then:
problems.size() == 1
}
}

0 comments on commit 3143243

Please sign in to comment.