When do I need to add a DTO to a class name? For example, I have the Country entity (i.e., in fact, the COUNTRY table in the database), in Java I create a class that maps to this table via ORM.
@Entity @Table(name = "COUNTRY") public class CountryDTO implements java.io.Serializable { private static final Long serialVersionUID = 2475653940063260199L; @Id @Column(name="ID") private Long countryId; ... }
The question is how to call this class CountryDTO or just Country. I have seen both versions in different sources.