The following document contains the results of PMD's CPD 6.53.0.
File | Project | Line |
---|---|---|
it/tidalwave/thesefoolishthings/examples/dci/persistable/jpa/role/impl/PersonEntity.java | TheseFoolishThings :: Examples :: DCI :: Persistence JPA | 45 |
it/tidalwave/thesefoolishthings/examples/jpafinderexample/impl/PersonEntity.java | TheseFoolishThings :: Examples :: Finder :: JPA Finder | 45 |
@Entity @NoArgsConstructor @Getter @Setter @ToString public class PersonEntity implements Serializable { @Id private String id; @Column private String firstName; @Column private String lastName; public PersonEntity (@Nonnull final Person datum) { this.id = datum.getId().stringValue(); this.firstName = datum.getFirstName(); this.lastName = datum.getLastName(); } @Nonnull public Person toPerson() { return new Person(new it.tidalwave.util.Id(id), firstName, lastName); } } |