Last active
January 3, 2018 05:37
-
-
Save slmanju/05ba64b9c84ae8463bc98f6dc99e55b4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import lombok.Data; | |
import javax.persistence.Entity; | |
import javax.persistence.Table; | |
import javax.persistence.*; | |
@Data | |
@Table(name = "todos") | |
@Entity | |
public class Todo { | |
@Id | |
@GeneratedValue(strategy = GenerationType.AUTO) | |
private Long id; | |
private String title; | |
private String summary; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment