Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
V2 2.0.1
-
None
Description
An exception will be thrown when expanding an inline entity which is a one-to-many relationship to the entity itself.
My entity model:
@EdmEntityType
@EdmEntitySet(name="Manufacturers")
public class Manufacturer {
@EdmKey
@EdmProperty
private String id;
@EdmProperty
private String name;
@EdmProperty
private Calendar founded;
@EdmNavigationProperty
private List<Car> cars;
@EdmNavigationProperty
private List<Manufacturer> subManufacturers;
}
Response:
{"error":{"code":null,"message":
}}
A workaround is to add toRole to the navigation property annotation as "@EdmNavigationProperty(toRole="r-manufacturers")".