grails - How to search using a domain class instance? -
I have a domain class user with all the instances
< Code> [user: 1, user: 2, user: 3, user: 4, user: 5, user: 6, user: 7, ...]
and a frequency list User Instance List with only a few items,
[user: 3, user: 4]
my Search Users: 4 and Users Something In The object is in. SEARCHTERM User using user . How do I find the object in the userInstanceList
if you want to ban You should only be able to use the section of the
section at the time of searching for the only things in the user's instincts.
User.findAll {searchTerm & amp; ID User User List * .id}
or
User.Features {Search in Inventory List ID, User Instance List * .ID}
Comments
Post a Comment