Learning jpa relational mapping , and unit test.