complete examples jdbc and jpa