Is it anti-pattern to put id(GeneratedValue) in dto?
I am using spring data jpa.
I created dto as record.
But I don't know if it's okay to put id in dto.
I wonder if putting id in dto is anti-pattern.
Is it anti-pattern to put id(GeneratedValue) in dto?
I am using spring data jpa.
I created dto as record.
But I don't know if it's okay to put id in dto.
I wonder if putting id in dto is anti-pattern.