Created
April 2, 2021 15:33
-
-
Save mmafrar/cf942f5170dc9f0cda08bb8df13b8f4d to your computer and use it in GitHub Desktop.
Implementing Spring Boot MVC CRUD operations with JPA and JSP
This file contains hidden or 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
package com.example.demo.model; | |
import lombok.Getter; | |
import lombok.Setter; | |
import javax.persistence.Column; | |
import javax.persistence.Entity; | |
import javax.persistence.GeneratedValue; | |
import javax.persistence.GenerationType; | |
import javax.persistence.Id; | |
@Setter | |
@Getter | |
@Entity | |
public class Contact { | |
@Id | |
@Column | |
@GeneratedValue(strategy = GenerationType.IDENTITY) | |
private Integer id; | |
@Column | |
private String name; | |
@Column | |
private String email; | |
@Column | |
private String country; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment