Last active
July 12, 2018 13:32
-
-
Save john-nash-rs/b1c45e62c45d3801b3c12721d3aee854 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
package models; | |
import lombok.Data; | |
import javax.persistence.*; | |
/** | |
* Created by harshvardhan on 10/07/18. | |
*/ | |
@Entity | |
@Table(name = "info") | |
@NamedQueries({ | |
@NamedQuery(name = "com.wordpress.nullpointerexception1.info.findAll", | |
query = "select e from Info e") | |
}) | |
public class Info { | |
@Column(name = "name") | |
private String name; | |
@Id | |
@Column(name = "empid") | |
private String empid; | |
public String getName() { | |
return name; | |
} | |
public void setName(String name) { | |
this.name = name; | |
} | |
public String getEmpid() { | |
return empid; | |
} | |
public void setEmpid(String empid) { | |
this.empid = empid; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment