configured right build structure and jpa