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.
|
|
|
|