Instances of your entity need to be retrieved using data other than the primary key of your entity, which may include:
- searches ("readmultis") of your entity, which may return zero or more matches; and/or
- singleton reads ("nsreads") of your entity, which may return zero matches or exactly one match.
In classic Cúram, you would model readmulti and nsread operations on your entity. Callers of your nsread would be expected to handle a RecordNotFoundException (or use the NotFoundIndicator mechanism).
How do you add non-key retrievals to your entity?