add jpa entity Period + tests