Esqueleto de proyecto inicial.
This commit is contained in:
50
1.sources/MyHealth/src/jpa/TestTableJPA.java
Normal file
50
1.sources/MyHealth/src/jpa/TestTableJPA.java
Normal file
@@ -0,0 +1,50 @@
|
||||
package jpa;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
|
||||
/**
|
||||
* Calse JPA MedicalSpecialty, para interactuar con la base de datos.
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "TestTable")
|
||||
public class TestTableJPA implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Id
|
||||
private String name;
|
||||
private String description;
|
||||
|
||||
/**
|
||||
* Class constructor methods
|
||||
*/
|
||||
public TestTableJPA() {
|
||||
super();
|
||||
}
|
||||
|
||||
public TestTableJPA(String name, String description) {
|
||||
this.name = name;
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
@Id
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user