java - Need to use table alias inside @Formula annotation in Hibernate -
is there way reference current table's alias inside of @formula annotation in hibernate? want use rrn() function takes in table name or alias if table aliased parameter. tried specifying table name directly in annotation won't work because table aliased.
i tried {alias} hoping may available didn't work either.
@formula("rrn({alias})")
i'm looking generate query this:
select alias.column1, alias.column2, alias.column3, rrn(alias) table alias
Comments
Post a Comment