【发布时间】:2016-03-11 08:48:54
【问题描述】:
假设我有一个@Entity (JPA 2.0)
@Entity
class Entry {
@ElementCollection
Set<String> users = new HashSet();
@ElementCollection
Set<String> groups = new HashSet();
}
如何查询它以查找用户为“John”且组为“Foo”、“Bar”和“FooBar”的所有条目?
【问题讨论】:
-
你会回答控制。