Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
version 3.0.5
Is there a way to create a formula property mapping where I can pass runtime parameters to the formula?
I want to call an oracle function that takes in a longitude and latitude and calculates the distance. Here is the mapping of the field:
Code:
<property name="distance" formula="DISTANCE(?, ?, addr.longitude, addr.latitude) distance" />
It's easy enough to create hql/sql but I would like to use the criteria object to create my where clause instead of creating stringbuffer and appending the sql together.