public Query createSQLQuery(String sql, String returnAlias, Class returnClass)Create a new instance of Query for the given SQL string.
Parameters: sql - a query expressed in SQL returnAlias - a table alias that appears inside {} in the SQL string returnClass - the returned persistent classpublic Query createSQLQuery(String sql, String[] returnAliases, Class[] returnClasses)Create a new instance of Query for the given SQL string.
Parameters: sql - a query expressed in SQL returnAliases - an array of table aliases that appear inside {} in the SQL string returnClasses - the returned persistent classes本文地址:http://com.8s8s.com/it/it10399.htm