Forums Register Login

Filtering Associated Collections

+Pie Number of slices to send: Send
Okay, given the following class:



Here is the EquipmentItem class:



I need to define a filter on User so that when activated, it only returns certain types of equipment (name="WORKSTATION", for example). Actually, I want to define multiple filters for different reports (such as only "WORKSTATION" or in one case, Users who do NOT have a Workstation assigned).

This is probably simple, but can anyone assist?

Jason
Is this the real life? Is this just fantasy? Is this a tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 709 times.
Similar Threads
Primary key / Forign Key
Cascading deletes
@ManyToOne & @JoinColumn
CascadeType.PERSIST not working
Repeated column in mapping for entity
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 16:34:32.