Skip to content

Commit

Permalink
HSEARCH-3447 Add native ORM Criteria to forbidden APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
yrodiere committed Aug 6, 2019
1 parent c3272c7 commit 20014e6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build-config/src/main/resources/forbidden-runtime.txt
Expand Up @@ -27,8 +27,12 @@ org.jboss.logging.processor.util.Objects @ Bad import, use java.util.Objects

################################################################################################################
# Methods from Hibernate ORM :
# This one is only safe to use with specific configurations:
org.hibernate.SharedSessionContract#getTransaction() @ Using this method is often unsafe
org.hibernate.SharedSessionContract#createCriteria(java.lang.Class) @ Native Criteria are deprecated
org.hibernate.SharedSessionContract#createCriteria(java.lang.Class, java.lang.String) @ Native Criteria are deprecated
org.hibernate.SharedSessionContract#createCriteria(java.lang.String) @ Native Criteria are deprecated
org.hibernate.SharedSessionContract#createCriteria(java.lang.String, java.lang.String) @ Native Criteria are deprecated
org.hibernate.criterion.** @ Native Criteria are deprecated

################################################################################################################
# Use our Contracts class instead
Expand Down

0 comments on commit 20014e6

Please sign in to comment.