Skip to content

Commit

Permalink
Added convenience functions to EntityType
Browse files Browse the repository at this point in the history
  • Loading branch information
hylkevds committed May 23, 2024
1 parent 585a760 commit 5cde0b3
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,22 @@ public NavigationPropertyMain getNavigationProperty(String name) {
return null;
}

public NavigationPropertyEntity getNavigationPropertyEntity(String name) {
Property property = propertiesByName.get(name);
if (property instanceof NavigationPropertyEntity npe) {
return npe;
}
return null;
}

public NavigationPropertyEntitySet getNavigationPropertyEntitySet(String name) {
Property property = propertiesByName.get(name);
if (property instanceof NavigationPropertyEntitySet npes) {
return npes;
}
return null;
}

/**
* The Set of PROPERTIES that Entities of this type have.
*
Expand Down

0 comments on commit 5cde0b3

Please sign in to comment.