public abstract class HibernateUtils extends Object
Modifier and Type | Method and Description |
---|---|
static String |
getHibernateQuery(Object query)
Return the query string of the underlying native Hibernate query.
|
static boolean |
isVersionOrBetter(Version version)
Returns whether the currently used version of Hibernate is equal to or newer than the given one.
|
static boolean |
supportsTuples()
Returns whether the current version of Hibernate supports
Tuple as a return type for
native queries. |
static boolean |
supportsTuplesForNativeQueries()
Returns whether the current version of Hibernate supports
Tuple as a return type for
native queries. |
public static String getHibernateQuery(Object query)
query
- public static boolean isVersionOrBetter(Version version)
version
- must not be null.public static boolean supportsTuples()
Tuple
as a return type for
native queries.public static boolean supportsTuplesForNativeQueries()
Tuple
as a return type for
native queries.Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.