new jpa based template