@Trait @CompileStatic trait HibernateEntity<D> extends GormEntity<D>
Extends the GormEntity trait adding additional Hibernate specific methods
| Type Params | Return Type | Name and description |
|---|---|---|
|
static List<D> |
findAllWithSql(CharSequence sql)Finds all objects for the given string-based query |
|
static List<D> |
findAllWithSql(CharSequence sql, Map args)Finds all objects for the given string-based query |
|
static D |
findWithSql(CharSequence sql)Finds an entity for the given SQL query |
|
static D |
findWithSql(CharSequence sql, Map args)Finds an entity for the given SQL query |
Finds all objects for the given string-based query
sql - The queryFinds all objects for the given string-based query
sql - The queryFinds an entity for the given SQL query
sql - The sql queryFinds an entity for the given SQL query
sql - The sql query