Criteria myCrit = new Criteria(); myCrit.addAsColumn( "alias", "ALIAS("+MyPeer.ID+")");
If the name already exists, it is replaced by the new clause.
@param name wanted Name of the column
@param clause SQL clause to select from the table
@return A modified Criteria object.
Criteria myCrit = new Criteria(); myCrit.addAsColumn("alias", "ALIAS("+MyPeer.ID+")");
@param name wanted Name of the column
@param clause SQL clause to select from the tableIf the name already exists, it is replaced by the new clause.
@return A modified Criteria object.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|