Could you take a look at this?
https://help.hana.ondemand.com/help/frameset.htm?e4c52854bb571014aeb88753d0dad158.html
This article is a typical Java web application.
It seems nothing different from a normal Java application except it is deployed on HANA platform.
Can you take this as a sample to explain how to push the logic down into DB layer?