partial JPA stuff