Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
除了通过 JPA 2.0 Criteria API 之外,还有其他方法可以使用 TopLink 进行类型安全查询吗?
在一次销售会议上,我的印象是,这可以通过 TopLink 中的专有部分实现,但我找不到任何相关文档。
不,JPA 2.0 是唯一的方法。
TopLink 也提供 Expression 对象,但它们没有类型。如果您只需要动态查询,则可以使用表达式而不是条件。
嗨,您可以使用其他库,例如查询 dsl或对象查询