#836 - Clarify that createResource is just user code in the reference documentation.

This commit is contained in:
Greg Turnquist
2019-07-31 12:23:02 -05:00
parent feaa56a68c
commit 9ba7f0179c

View File

@@ -469,6 +469,7 @@ class PersonModelAssembler extends RepresentationModelAssemblerSupport<Person, P
}
}
----
NOTE: `createResource(...)` is code you write to instantiate a `PersonModel` object given a `Person` object. It should only focus on setting attributes, not populating `Links`.
====
Setting the class up as we did in the preceding example gives you the following benefits: