Methods to deal with the differences in different Hibernate versions
| Type | Name and description |
|---|---|
static org.hibernate.FlushMode |
getFlushMode(org.hibernate.Session session)Get the native Hibernate FlushMode, adapting between Hibernate 5.0/5.1 and 5.2+. |
static void |
setFlushMode(org.hibernate.Session session, org.hibernate.FlushMode flushMode)Set the native Hibernate FlushMode, adapting between Hibernate 5.0/5.1 and 5.2+. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Get the native Hibernate FlushMode, adapting between Hibernate 5.0/5.1 and 5.2+.
null)session - the Hibernate Session to get the flush mode fromSet the native Hibernate FlushMode, adapting between Hibernate 5.0/5.1 and 5.2+.
null)session - the Hibernate Session to get the flush mode from