@groovy.transform.Trait @groovy.transform.CompileStatic trait HibernateEntity<D> extends org.grails.datastore.gorm.GormEntity<D>
Extends the org.grails.datastore.gorm.GormEntity trait adding additional Hibernate specific methods
Type Params | Return Type | Name and description |
---|---|---|
|
static java.util.List<D> |
findAllWithSql(java.lang.CharSequence sql) Finds all objects for the given string-based query |
|
static java.util.List<D> |
findAllWithSql(java.lang.CharSequence sql, java.util.Map args) Finds all objects for the given string-based query |
|
static D |
findWithSql(java.lang.CharSequence sql) Finds an entity for the given SQL query |
|
static D |
findWithSql(java.lang.CharSequence sql, java.util.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