You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create simple controller class where the index method creates a DetachedCriteria instance from the Company domain class' static method's result, adds an additional where clause, and calls list() on the resulting DetachedCriteria instance
The index method should return one Company object with the name 'test' and the ownerName 'don', which is a result of the composition of the two detached criteria objects.
Actual Behaviour
The index method returns the 3 Company objects with the name 'test', because only the first Detached Criteria instance is used, ignoring the second Detached Criteria instance altogether.
Environment Information
Operating System: Ubuntu 16.04
GORM Version: 6.1.6.RELEASE
Grails Version (if using Grails): 3.3.0
JDK Version:
java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)
Similar issue to Issue #860
Steps to Reproduce
Expected Behaviour
The index method should return one Company object with the name 'test' and the ownerName 'don', which is a result of the composition of the two detached criteria objects.
Actual Behaviour
The index method returns the 3 Company objects with the name 'test', because only the first Detached Criteria instance is used, ignoring the second Detached Criteria instance altogether.
Environment Information
java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)
Example Application
The text was updated successfully, but these errors were encountered: