Introduction to using Java Persistence API in a web application in Java EE environment