Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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