update jpa demo code