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

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -