Skip to content

Commit

Permalink
apply instead of copy
Browse files Browse the repository at this point in the history
  • Loading branch information
bencegelei committed Jan 16, 2025
1 parent 39089ca commit 691e7ac
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/hu/blackbelt/judo/dao/api/DAO.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,13 @@ public interface DAO<ID> {
/**
* <p>Apply the default values in the given payload based on the specified transfer object type.</p>
* <p>The default values are also applied by traversing through its relations.</p>
* <p>NOTE: additional fields with default values on entity type that are not targeted by a mapping from given transfer object (clazz) mapping,
* will not be applied</p>
*
* @param clazz transfer object type
* @param payload payload
* @return copy of given payload with Applied default values
*/
Payload applyDefaultsOf(EClass clazz, Payload payload);
void applyDefaultsOf(EClass clazz, Payload payload);

/**
* Get range of a given transfer object relation.
Expand Down

0 comments on commit 691e7ac

Please sign in to comment.