Skip to content

Commit

Permalink
fix: Update code
Browse files Browse the repository at this point in the history
  • Loading branch information
larshelge committed Jan 8, 2025
1 parent 68dac3a commit 9f6aa32
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -754,6 +754,13 @@ public void setChildren(Set<OrganisationUnit> children) {
this.children = children;
}

/**
* Note that the {@code path} is mapped with the "property access" mode. This method will
* recalculate and return the path property value. To access the {@code path} property directly,
* use {@link OrganisationUnit#getPathPersisted}.
*
* @return the recalculated path.
*/
@JsonProperty
@JacksonXmlProperty(namespace = DxfNamespaces.DXF_2_0)
public String getPath() {
Expand Down Expand Up @@ -785,6 +792,17 @@ public void setPath(String path) {
this.path = path;
}

/**
* Note that the {@code path} is mapped with the "property access" mode. This method will return
* the persisted {@code path} property directly. To get the recalculated path value, use {@link
* OrganisationUnit#getPath}.
*
* @return the persisted path.
*/
public String getPathPersisted() {
return path;
}

/**
* Used by persistence layer. Purpose is to have a column for use in database queries. For
* application use see {@link OrganisationUnit#getLevel()} which has better performance.
Expand Down

0 comments on commit 9f6aa32

Please sign in to comment.