Subida incial del esqueleto del componente profile:
* Clases de ejb FacadeBean y FacadeRemote con implementación incial. * Clases de persistencia JPA necesarias para el componente con algunas relaciones configuradas (Necesaria revisión). * ClasesTO (Transfer Object) iniciales (Necesitan revisión profunda). * Cambio de estrategia sobre paquetes para clases TO, es necesario ubicarlas en el mismo paquete, ya que se comparten por varios componentes. Se sigue la misma estrategia que con las clases JPA. * Si alguien necesita utilizar alguna clase JPA debe revisarla (Seguro que faltan relaciones). * Creadas clases esqueleto (Dummy) para MBean del componente perfil. * Se ha eliminado paquetes no necesarios (clases TO). * En principio el proyecto debería compilar. * Se asume que el equema de base de datos se llamará "MyHealth" (Ver anotación en clases JPA.
This commit is contained in:
84
1.sources/MyHealth/src/TO/FamilyDoctorTO.java
Normal file
84
1.sources/MyHealth/src/TO/FamilyDoctorTO.java
Normal file
@@ -0,0 +1,84 @@
|
||||
package TO;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Marcos García Núñez (mgarcianun@uoc.edu)
|
||||
*
|
||||
*/
|
||||
@XmlRootElement(name = "FamilyDoctor")
|
||||
public class FamilyDoctorTO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
private String id;
|
||||
private String nif;
|
||||
private String name;
|
||||
private String surname;
|
||||
private String password;
|
||||
private String email;
|
||||
|
||||
public FamilyDoctorTO() {
|
||||
super();
|
||||
}
|
||||
|
||||
public FamilyDoctorTO(String id, String nif, String name, String surname, String password, String email) {
|
||||
this.setId(id);
|
||||
this.setNif(nif);
|
||||
this.setName(name);
|
||||
this.setSurname(surname);
|
||||
this.setPassword(password);
|
||||
this.setEmail(email);
|
||||
}
|
||||
|
||||
public String getEmail() {
|
||||
return email;
|
||||
}
|
||||
|
||||
public void setEmail(String email) {
|
||||
this.email = email;
|
||||
}
|
||||
|
||||
public String getPassword() {
|
||||
return password;
|
||||
}
|
||||
|
||||
public void setPassword(String password) {
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
public String getSurname() {
|
||||
return surname;
|
||||
}
|
||||
|
||||
public void setSurname(String surname) {
|
||||
this.surname = surname;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getNif() {
|
||||
return nif;
|
||||
}
|
||||
|
||||
public void setNif(String nif) {
|
||||
this.nif = nif;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
}
|
||||
44
1.sources/MyHealth/src/TO/MedicalSpecialtyTO.java
Normal file
44
1.sources/MyHealth/src/TO/MedicalSpecialtyTO.java
Normal file
@@ -0,0 +1,44 @@
|
||||
package TO;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Marcos García Núñez (mgarcianun@uoc.edu)
|
||||
*
|
||||
*/
|
||||
@XmlRootElement(name = "medicalspeciality")
|
||||
public class MedicalSpecialtyTO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private String name;
|
||||
private String description;
|
||||
|
||||
public MedicalSpecialtyTO() {
|
||||
super();
|
||||
}
|
||||
|
||||
public MedicalSpecialtyTO(String name, String description) {
|
||||
this.name = name;
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
23
1.sources/MyHealth/src/TO/MedicalTestTO.java
Normal file
23
1.sources/MyHealth/src/TO/MedicalTestTO.java
Normal file
@@ -0,0 +1,23 @@
|
||||
package TO;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Marcos García Núñez (mgarcianun@uoc.edu)
|
||||
*
|
||||
*/
|
||||
@XmlRootElement(name = "MedicalTest")
|
||||
public class MedicalTestTO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
|
||||
public MedicalTestTO() {
|
||||
super();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
91
1.sources/MyHealth/src/TO/PatientTO.java
Normal file
91
1.sources/MyHealth/src/TO/PatientTO.java
Normal file
@@ -0,0 +1,91 @@
|
||||
package TO;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
import jpa.FamilyDoctorJPA;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Marcos García Núñez (mgarcianun@uoc.edu)
|
||||
*
|
||||
*/
|
||||
@XmlRootElement(name = "Patient")
|
||||
public class PatientTO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
private String id;
|
||||
private String nif;
|
||||
private String name;
|
||||
private String surname;
|
||||
private String password;
|
||||
private String email;
|
||||
private FamilyDoctorTO familyDoctor;
|
||||
|
||||
/**
|
||||
* Class constructor methods
|
||||
*/
|
||||
public PatientTO() {
|
||||
super();
|
||||
}
|
||||
|
||||
public PatientTO(String id, String nif, String name, String surname, String password, String email) {
|
||||
this.setId(id);
|
||||
this.setNif(nif);
|
||||
this.setName(name);
|
||||
this.setSurname(surname);
|
||||
this.setPassword(password);
|
||||
this.setEmail(email);
|
||||
}
|
||||
|
||||
public String getEmail() {
|
||||
return email;
|
||||
}
|
||||
|
||||
public void setEmail(String email) {
|
||||
this.email = email;
|
||||
}
|
||||
|
||||
public String getPassword() {
|
||||
return password;
|
||||
}
|
||||
|
||||
public void setPassword(String password) {
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
public String getSurname() {
|
||||
return surname;
|
||||
}
|
||||
|
||||
public void setSurname(String surname) {
|
||||
this.surname = surname;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getNif() {
|
||||
return nif;
|
||||
}
|
||||
|
||||
public void setNif(String nif) {
|
||||
this.nif = nif;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
23
1.sources/MyHealth/src/TO/PrimaryHealthCareCenterTO.java
Normal file
23
1.sources/MyHealth/src/TO/PrimaryHealthCareCenterTO.java
Normal file
@@ -0,0 +1,23 @@
|
||||
package TO;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Marcos García Núñez (mgarcianun@uoc.edu)
|
||||
*
|
||||
*/
|
||||
@XmlRootElement(name = "PrimaryHealthCareCenter")
|
||||
public class PrimaryHealthCareCenterTO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
|
||||
public PrimaryHealthCareCenterTO() {
|
||||
super();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
84
1.sources/MyHealth/src/TO/SpecialistDoctorTO.java
Normal file
84
1.sources/MyHealth/src/TO/SpecialistDoctorTO.java
Normal file
@@ -0,0 +1,84 @@
|
||||
package TO;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Marcos García Núñez (mgarcianun@uoc.edu)
|
||||
*
|
||||
*/
|
||||
@XmlRootElement(name = "SpecialistDoctor")
|
||||
public class SpecialistDoctorTO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
private String id;
|
||||
private String nif;
|
||||
private String name;
|
||||
private String surname;
|
||||
private String password;
|
||||
private String email;
|
||||
|
||||
public SpecialistDoctorTO() {
|
||||
super();
|
||||
}
|
||||
|
||||
public SpecialistDoctorTO(String id, String nif, String name, String surname, String password, String email) {
|
||||
this.setId(id);
|
||||
this.setNif(nif);
|
||||
this.setName(name);
|
||||
this.setSurname(surname);
|
||||
this.setPassword(password);
|
||||
this.setEmail(email);
|
||||
}
|
||||
|
||||
public String getEmail() {
|
||||
return email;
|
||||
}
|
||||
|
||||
public void setEmail(String email) {
|
||||
this.email = email;
|
||||
}
|
||||
|
||||
public String getPassword() {
|
||||
return password;
|
||||
}
|
||||
|
||||
public void setPassword(String password) {
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
public String getSurname() {
|
||||
return surname;
|
||||
}
|
||||
|
||||
public void setSurname(String surname) {
|
||||
this.surname = surname;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getNif() {
|
||||
return nif;
|
||||
}
|
||||
|
||||
public void setNif(String nif) {
|
||||
this.nif = nif;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
package TO.systemAdmin;
|
||||
package TO;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@@ -15,7 +15,7 @@ import javax.xml.bind.annotation.XmlRootElement;
|
||||
* @author mark
|
||||
*
|
||||
*/
|
||||
@XmlRootElement(name = "SystemAdminTO")
|
||||
@XmlRootElement(name = "SystemAdmin")
|
||||
public class SystemAdminTO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
@@ -1,4 +1,4 @@
|
||||
package TO.visit;
|
||||
package TO;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@@ -15,7 +15,7 @@ import javax.xml.bind.annotation.XmlRootElement;
|
||||
* @author mark
|
||||
*
|
||||
*/
|
||||
@XmlRootElement(name = "TestClass")
|
||||
@XmlRootElement(name = "Visit")
|
||||
public class VisitTO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
@@ -1,29 +0,0 @@
|
||||
package TO.medicalTest;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
/**
|
||||
* Transfer object (TO) MedicalSpecialtyTO Para el intercambio de datos entre la
|
||||
* capa de interfaz y la capa de negocio
|
||||
*
|
||||
* Además esta clase facilita la implementación futura de una Capa SOA (Se
|
||||
* define la anotación para la serialización de esta clase: @XmlRootElement(name
|
||||
* = "medicalspeciality")
|
||||
*
|
||||
* @author mark
|
||||
*
|
||||
*/
|
||||
@XmlRootElement(name = "MedicalTestTO")
|
||||
public class MedicalTestTO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
|
||||
public MedicalTestTO() {
|
||||
super();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -1,29 +0,0 @@
|
||||
package TO.profile;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
/**
|
||||
* Transfer object (TO) MedicalSpecialtyTO Para el intercambio de datos entre la
|
||||
* capa de interfaz y la capa de negocio
|
||||
*
|
||||
* Además esta clase facilita la implementación futura de una Capa SOA (Se
|
||||
* define la anotación para la serialización de esta clase: @XmlRootElement(name
|
||||
* = "medicalspeciality")
|
||||
*
|
||||
* @author mark
|
||||
*
|
||||
*/
|
||||
@XmlRootElement(name = "ProfileTO")
|
||||
public class ProfileTO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
|
||||
public ProfileTO() {
|
||||
super();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user