Skip to content

Commit

Permalink
JNG-6082 Refactor required validation and default value processing (#68)
Browse files Browse the repository at this point in the history
[2025-01-19 19:54:06 +0100] bence.gelei: restore pom.xml change
[2025-01-16 15:08:44 +0100] bence.gelei: apply instead of copy
[2025-01-15 19:09:37 +0100] bence.gelei: rename
[2025-01-15 17:28:56 +0100] bence.gelei: default populator added
[2025-01-13 11:52:34 +0100] bence.gelei: payload traverser added
[2025-01-13 11:21:45 +0100] bence.gelei: JNG-6082 Initial feature commit
  • Loading branch information
bencegelei authored Jan 20, 2025
1 parent f05e3ff commit 62642c3
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/main/java/hu/blackbelt/judo/dao/api/DAO.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,17 @@ public interface DAO<ID> {
*/
Payload getDefaultsOf(EClass clazz);

/**
* <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
*/
void applyDefaultsOf(EClass clazz, Payload payload);

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

0 comments on commit 62642c3

Please sign in to comment.