chb0kotlin
02/09/2018, 6:05 AM@Getter
@EqualsAndHashCode
@Entity
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class Candidate implements Post {
@Id
@GeneratedValue
private Long id;
@NotNull
private Date date;
@NotNull
private String name;
}
The problems I am having are many. The most important thing I am trying to do is get non-final members: var
and implement the interface for
public interface Post {
Long getId();
Date getDate();
String getName();
}
I would also love to get the features that come with a data class but that's stretching it