Default values in related tables #508
Replies: 2 comments 2 replies
-
After the translation form InputDTO to entity, input will be forgot, so They are two fully separated features. |
Beta Was this translation helpful? Give feedback.
1 reply
-
For insert, it is right, but for update, ignoring it better, Please submit a FR: Ignore |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey all - I have a
Users
entity with a@OneToMany
relationship to anAddress
entity. Both entities have a String field calledstatus
with a@Default
annotation. I've defined the DTO as follows:I specifically exclude
status
because it's not something I want exposed in the API.However, it seems that the
@Default
values in theAddress
relation don't get populated the same way the@Default
values in theUsers
entity. Is it possible that the defaults for the embedded entity are not being populated?Beta Was this translation helpful? Give feedback.
All reactions