I would like to know if we can set the custom parameter in @Formula through the application.
@Formula(TAX_RATE * price)
private Integer totalPrice;
TAX_RATE is NOT a column in database, where as 'price' is the column in db.
How can I set the TAX_RATE value during the runtime of the query through the application?
Somebody suggested to use Hibernate Interceptor 'onPreparedStatement' method. Is there any better way ?