Fixes JPA relation mappings