integrada (Estilo typeahead). Permite búsquedas en tiempo real. * Se muestra información organizada por columnas de datos. * Identificadores basados en Ids autogenerados. * Nuevos métodos en EJB común para poder realizar búsquedas de datos con filtro y paginadas (para los comboBox). * Varias correcciones de interfaz de usuario. * Nueva clase de utilidades.
66 lines
1.3 KiB
Java
66 lines
1.3 KiB
Java
package jpa;
|
|
|
|
import java.io.Serializable;
|
|
|
|
import javax.persistence.Column;
|
|
import javax.persistence.Entity;
|
|
import javax.persistence.GeneratedValue;
|
|
import javax.persistence.GenerationType;
|
|
import javax.persistence.Id;
|
|
import javax.persistence.Table;
|
|
|
|
/**
|
|
*
|
|
* @author Marcos García Núñez (mgarcianun@uoc.edu)
|
|
*
|
|
*/
|
|
@Entity
|
|
@Table(name = "MyHealth.PrimaryHealthCareCenter")
|
|
public class PrimaryHealthCareCenterJPA implements Serializable {
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
@Id
|
|
@Column(updatable = false)
|
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
private Integer id;
|
|
private String name;
|
|
private String location;
|
|
|
|
/**
|
|
* Class constructor methods
|
|
*/
|
|
public PrimaryHealthCareCenterJPA() {
|
|
super();
|
|
}
|
|
|
|
public PrimaryHealthCareCenterJPA(String name, String location) {
|
|
this.name = name;
|
|
this.location = location;
|
|
}
|
|
|
|
public Integer getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(Integer value) {
|
|
this.id = value;
|
|
}
|
|
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
|
|
public void setName(String name) {
|
|
this.name = name;
|
|
}
|
|
|
|
public String getLocation() {
|
|
return location;
|
|
}
|
|
|
|
public void setLocation(String locationValue) {
|
|
this.location = locationValue;
|
|
}
|
|
}
|