public final class

Expression

extends Restrictions
java.lang.Object
   ↳ org.hibernate.criterion.Restrictions
     ↳ org.hibernate.criterion.Expression

This class is deprecated.
Use Restrictions.

See Also

Summary

Public Methods
static Criterion sql(String sql)
This method is deprecated. use sqlRestriction(String)
static Criterion sql(String sql, Object[] values, Type[] types)
This method is deprecated. use sqlRestriction(String, Object[], Type[])
static Criterion sql(String sql, Object value, Type type)
This method is deprecated. use sqlRestriction(String, Object, Type)
[Expand]
Inherited Methods
From class org.hibernate.criterion.Restrictions
From class java.lang.Object

Public Methods

public static Criterion sql (String sql)

This method is deprecated.
use sqlRestriction(String)

Apply a constraint expressed in SQL. Any occurrences of {alias} will be replaced by the table alias.

Returns
  • Criterion

public static Criterion sql (String sql, Object[] values, Type[] types)

This method is deprecated.
use sqlRestriction(String, Object[], Type[])

Apply a constraint expressed in SQL, with the given JDBC parameters. Any occurrences of {alias} will be replaced by the table alias.

Returns
  • Criterion

public static Criterion sql (String sql, Object value, Type type)

This method is deprecated.
use sqlRestriction(String, Object, Type)

Apply a constraint expressed in SQL, with the given JDBC parameter. Any occurrences of {alias} will be replaced by the table alias.

Returns
  • Criterion