Modifier and Type | Method and Description |
---|---|
SQLQuery.ReturnProperty |
addProperty(String propertyName)
Add a property, presumably with more than one column.
|
SQLQuery.RootReturn |
addProperty(String propertyName,
String columnAlias)
Add a simple property-to-one-column mapping.
|
SQLQuery.RootReturn |
setDiscriminatorAlias(String columnAlias)
Name the column alias that identifies the entity's discriminator.
|
SQLQuery.RootReturn |
setLockMode(LockMode lockMode)
Set the lock mode for this return.
|
SQLQuery.RootReturn setLockMode(LockMode lockMode)
lockMode
- The new lock mode.this
, for method chainingSQLQuery.RootReturn setDiscriminatorAlias(String columnAlias)
columnAlias
- The discriminator column aliasthis
, for method chainingSQLQuery.RootReturn addProperty(String propertyName, String columnAlias)
propertyName
- The name of the property.columnAlias
- The name of the columnthis
, for method chainingSQLQuery.ReturnProperty addProperty(String propertyName)
propertyName
- The name of the property.Copyright © 2001-2022 Red Hat, Inc. All Rights Reserved.