简体   繁体   中英

How to create dynamic jpa query?

通过从过滤的uı数据获取(服务层),可以创建动态的“ where” jpa(持久层)查询吗?

The easiest way to implement Apache Olingo's ExpresionVisitor for OData filtering is to use HQL (Hibernate Query Language). Take a look at the repository where I did it. The trick is to map somehow OData's Entities and their properties to the ones from Hibernate.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM