I want to run below query of haversine formula as NamedQuery but I don\'t know how to correct it.
set @orig_lat = 37.334542; set @orig_lon = -121.890821; set @di
Finally able to find out solution. Instead of createQuery, I used createNativeQuery and that solve my problem.