Integrating Rest api with Hibernate for Add Rows