Is it anti-pattern to put id(GeneratedValue) in DTO?

Viewed 27

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.

0 Answers
Related