Correcciones en clases VisiJPA y VisitTO para que compile el proyecto.
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
package TO;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.sql.Time;
|
||||
import java.util.Date;
|
||||
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
@@ -34,19 +36,19 @@ public class VisitTO implements Serializable {
|
||||
}
|
||||
public VisitTO(Integer id, Date date, Time time, String observation, String result) {
|
||||
this.setId(id);
|
||||
this date=date;
|
||||
this time
|
||||
1}
|
||||
this.date=date;
|
||||
//this.time
|
||||
}
|
||||
public Integer getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(integer id) {
|
||||
public void setId(Integer id) {
|
||||
this.id=id;
|
||||
}
|
||||
|
||||
public Date getDate() {
|
||||
return this.Date;
|
||||
return this.date;
|
||||
}
|
||||
|
||||
public void setDate(Date date) {
|
||||
|
||||
@@ -1,23 +1,17 @@
|
||||
<<<<<<< HEAD
|
||||
package jpa;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.sql.time;
|
||||
import java.sql.Time;
|
||||
import java.util.Date;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
import javax.persistence.JoinColumn;
|
||||
import javax.persistence.ManyToOne;
|
||||
@ManyToOne
|
||||
@JoinColumn (name="FamilyDoctorId")
|
||||
private FamilyDoctorJPA familyDoctor;
|
||||
@ManyToOne
|
||||
@JoinColumn (name="PatientId")
|
||||
private PatientJPA patient;
|
||||
import javax.persistence.Table;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -36,12 +30,17 @@ public class VisitJPA implements Serializable {
|
||||
private Time time;
|
||||
private String observations;
|
||||
private String result;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn (name="FamilyDoctorId")
|
||||
private FamilyDoctorJPA familyDoctor;
|
||||
@ManyToOne
|
||||
@JoinColumn (name="PatientId")
|
||||
private PatientJPA patient;
|
||||
|
||||
/**
|
||||
* Class constructor methods
|
||||
*/
|
||||
public VistitJPA() {
|
||||
public VisitJPA() {
|
||||
super();
|
||||
}
|
||||
|
||||
@@ -63,19 +62,19 @@ public class VisitJPA implements Serializable {
|
||||
this.id = value;
|
||||
}
|
||||
|
||||
public String getDate() {
|
||||
public Date getDate() {
|
||||
return date;
|
||||
}
|
||||
|
||||
public void setDate(String value) {
|
||||
public void setDate(Date value) {
|
||||
this.date = value;
|
||||
}
|
||||
|
||||
public String getTime() {
|
||||
public Time getTime() {
|
||||
return time;
|
||||
}
|
||||
|
||||
public void setTime(String value) {
|
||||
public void setTime(Time value) {
|
||||
this.time = value;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user