Added basic JPA functions