devxlogo

Setting a JPA Hint in Spring

Setting a JPA Hint in Spring

How to set a Java Persistence API hint in Spring:

@Override@QueryHints(value = { @QueryHint(name = "org.hibernate.cacheable", value = "true")})public List findAll();

devx-admin

Share the Post: