postgressql communication by JPA