|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hibernate.criterion.ProjectionList
com.gisgraphy.hibernate.projection.ProjectionBean
public class ProjectionBean
Constructor Summary | |
---|---|
ProjectionBean(java.util.List<java.lang.String> fields,
boolean autoAliasing)
|
Method Summary | |
---|---|
static org.hibernate.criterion.ProjectionList |
beanFieldList(java.lang.Class<?> clazz,
java.lang.String[] ignoreFields,
boolean autoaliasing)
|
static org.hibernate.criterion.ProjectionList |
fieldList(java.util.List<java.lang.String> fieldList,
boolean autoaliasing)
|
Methods inherited from class org.hibernate.criterion.ProjectionList |
---|
add, add, create, getAliases, getColumnAliases, getColumnAliases, getLength, getProjection, getTypes, getTypes, isGrouped, toGroupSqlString, toSqlString, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ProjectionBean(java.util.List<java.lang.String> fields, boolean autoAliasing)
fields
- the list of the field namesautoAliasing
- if the fields should be autoaliased. See important note
aboveMethod Detail |
---|
public static org.hibernate.criterion.ProjectionList fieldList(java.util.List<java.lang.String> fieldList, boolean autoaliasing)
fieldList
- a list of fields to retrieve Important Note : the
projection are automatically aliased with the same name,
you could have some problems when using restriction
(column yX_ doesn't exists) see
http://opensource.atlassian.com/projects/hibernate/browse/HHH-817.
To avoid this problem you could disable aliasing .public static org.hibernate.criterion.ProjectionList beanFieldList(java.lang.Class<?> clazz, java.lang.String[] ignoreFields, boolean autoaliasing)
clazz
- the class to inspect to retrieve the fieldsignoreFields
- an array of fields that should be ignoreautoaliasing
- if the fields should be auto-aliased See important note
above
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |