spring boot working with postgresql code example
Example 1: spring boot postgres
org.postgresql
postgresql
42.2.18
Example 2: Calling postgres function from spring boot
Author a = em.createQuery("SELECT a FROM Author a WHERE a.id = function('calculate', 1, 2)", Author.class).getSingleResult();