Primer commit
This commit is contained in:
@@ -0,0 +1,8 @@
|
|||||||
|
# Compilados de Java
|
||||||
|
*.class
|
||||||
|
bin/
|
||||||
|
|
||||||
|
# Configuración de Eclipse
|
||||||
|
.project
|
||||||
|
.classpath
|
||||||
|
.settings/
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
package org.palomafp.aadd.smmb;
|
||||||
|
|
||||||
|
public class Main {
|
||||||
|
|
||||||
|
public static void main(String[] args) {
|
||||||
|
// TODO Auto-generated method stub
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,49 @@
|
|||||||
|
package org.palomafp.aadd.smmb.model;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
public class Actor {
|
||||||
|
|
||||||
|
private int identificador;
|
||||||
|
private String nombre;
|
||||||
|
private Date fechaNacimiento;
|
||||||
|
private Pais pais;
|
||||||
|
|
||||||
|
|
||||||
|
public Actor(int identificador, String nombre, Date fechaNacimiento, Pais pais) {
|
||||||
|
super();
|
||||||
|
this.identificador = identificador;
|
||||||
|
this.nombre = nombre;
|
||||||
|
this.fechaNacimiento = fechaNacimiento;
|
||||||
|
this.pais = pais;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public int getIdentificador() {
|
||||||
|
return identificador;
|
||||||
|
}
|
||||||
|
public void setIdentificador(int identificador) {
|
||||||
|
this.identificador = identificador;
|
||||||
|
}
|
||||||
|
public String getNombre() {
|
||||||
|
return nombre;
|
||||||
|
}
|
||||||
|
public void setNombre(String nombre) {
|
||||||
|
this.nombre = nombre;
|
||||||
|
}
|
||||||
|
public Date getFechaNacimiento() {
|
||||||
|
return fechaNacimiento;
|
||||||
|
}
|
||||||
|
public void setFechaNacimiento(Date fechaNacimiento) {
|
||||||
|
this.fechaNacimiento = fechaNacimiento;
|
||||||
|
}
|
||||||
|
public Pais getPais() {
|
||||||
|
return pais;
|
||||||
|
}
|
||||||
|
public void setPais(Pais pais) {
|
||||||
|
this.pais = pais;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,38 @@
|
|||||||
|
package org.palomafp.aadd.smmb.model;
|
||||||
|
|
||||||
|
public class Continente {
|
||||||
|
|
||||||
|
private String codigo;
|
||||||
|
private String nombre;
|
||||||
|
|
||||||
|
|
||||||
|
public Continente(String codigo, String nombre) {
|
||||||
|
super();
|
||||||
|
this.codigo = codigo;
|
||||||
|
this.nombre = nombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public String getCodigo() {
|
||||||
|
return codigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void setCodigo(String codigo) {
|
||||||
|
this.codigo = codigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public String getNombre() {
|
||||||
|
return nombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void setNombre(String nombre) {
|
||||||
|
this.nombre = nombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,64 @@
|
|||||||
|
package org.palomafp.aadd.smmb.model;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
public class Director {
|
||||||
|
|
||||||
|
private int identificador;
|
||||||
|
private String nombre;
|
||||||
|
private Date fechaNacimiento;
|
||||||
|
private Pais pais;
|
||||||
|
|
||||||
|
|
||||||
|
public Director(int identificador, String nombre, Date fechaNacimiento, Pais pais) {
|
||||||
|
super();
|
||||||
|
this.identificador = identificador;
|
||||||
|
this.nombre = nombre;
|
||||||
|
this.fechaNacimiento = fechaNacimiento;
|
||||||
|
this.pais = pais;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public int getIdentificador() {
|
||||||
|
return identificador;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void setIdentificador(int identificador) {
|
||||||
|
this.identificador = identificador;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public String getNombre() {
|
||||||
|
return nombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void setNombre(String nombre) {
|
||||||
|
this.nombre = nombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public Date getFechaNacimiento() {
|
||||||
|
return fechaNacimiento;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void setFechaNacimiento(Date fechaNacimiento) {
|
||||||
|
this.fechaNacimiento = fechaNacimiento;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public Pais getPais() {
|
||||||
|
return pais;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void setPais(Pais pais) {
|
||||||
|
this.pais = pais;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,62 @@
|
|||||||
|
package org.palomafp.aadd.smmb.model;
|
||||||
|
|
||||||
|
public class Pais {
|
||||||
|
|
||||||
|
private int identificador;
|
||||||
|
private String nombre;
|
||||||
|
private String capital;
|
||||||
|
private Continente continente;
|
||||||
|
|
||||||
|
|
||||||
|
public Pais(int identificador, String nombre, String capital, Continente continente) {
|
||||||
|
super();
|
||||||
|
this.identificador = identificador;
|
||||||
|
this.nombre = nombre;
|
||||||
|
this.capital = capital;
|
||||||
|
this.continente = continente;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public int getIdentificador() {
|
||||||
|
return identificador;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void setIdentificador(int identificador) {
|
||||||
|
this.identificador = identificador;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public String getNombre() {
|
||||||
|
return nombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void setNombre(String nombre) {
|
||||||
|
this.nombre = nombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public String getCapital() {
|
||||||
|
return capital;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void setCapital(String capital) {
|
||||||
|
this.capital = capital;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public Continente getContinente() {
|
||||||
|
return continente;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void setContinente(Continente continente) {
|
||||||
|
this.continente = continente;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,111 @@
|
|||||||
|
package org.palomafp.aadd.smmb.model;
|
||||||
|
|
||||||
|
public class Pelicula {
|
||||||
|
|
||||||
|
private int identificador;
|
||||||
|
private String titulo;
|
||||||
|
private int anyo;
|
||||||
|
private String idioma;
|
||||||
|
private boolean color;
|
||||||
|
private String observaciones;
|
||||||
|
private Director director;
|
||||||
|
private Pais pais;
|
||||||
|
|
||||||
|
|
||||||
|
public Pelicula(int identificador, String titulo, int anyo, String idioma, boolean color, String observaciones,
|
||||||
|
Director director, Pais pais) {
|
||||||
|
super();
|
||||||
|
this.identificador = identificador;
|
||||||
|
this.titulo = titulo;
|
||||||
|
this.anyo = anyo;
|
||||||
|
this.idioma = idioma;
|
||||||
|
this.color = color;
|
||||||
|
this.observaciones = observaciones;
|
||||||
|
this.director = director;
|
||||||
|
this.pais = pais;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public int getIdentificador() {
|
||||||
|
return identificador;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void setIdentificador(int identificador) {
|
||||||
|
this.identificador = identificador;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public String getTitulo() {
|
||||||
|
return titulo;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void setTitulo(String titulo) {
|
||||||
|
this.titulo = titulo;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public int getAnyo() {
|
||||||
|
return anyo;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void setAnyo(int anyo) {
|
||||||
|
this.anyo = anyo;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public String getIdioma() {
|
||||||
|
return idioma;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void setIdioma(String idioma) {
|
||||||
|
this.idioma = idioma;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public boolean isColor() {
|
||||||
|
return color;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void setColor(boolean color) {
|
||||||
|
this.color = color;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public String getObservaciones() {
|
||||||
|
return observaciones;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void setObservaciones(String observaciones) {
|
||||||
|
this.observaciones = observaciones;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public Director getDirector() {
|
||||||
|
return director;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void setDirector(Director director) {
|
||||||
|
this.director = director;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public Pais getPais() {
|
||||||
|
return pais;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void setPais(Pais pais) {
|
||||||
|
this.pais = pais;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
package org.palomafp.aadd.smmb.model;
|
||||||
|
|
||||||
|
public class Reparto {
|
||||||
|
|
||||||
|
private String personaje;
|
||||||
|
private Pelicula pelicula;
|
||||||
|
private Actor actor;
|
||||||
|
|
||||||
|
|
||||||
|
public Reparto(String personaje, Pelicula pelicula, Actor actor) {
|
||||||
|
super();
|
||||||
|
this.personaje = personaje;
|
||||||
|
this.pelicula = pelicula;
|
||||||
|
this.actor = actor;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public String getPersonaje() {
|
||||||
|
return personaje;
|
||||||
|
}
|
||||||
|
public void setPersonaje(String personaje) {
|
||||||
|
this.personaje = personaje;
|
||||||
|
}
|
||||||
|
public Pelicula getPelicula() {
|
||||||
|
return pelicula;
|
||||||
|
}
|
||||||
|
public void setPelicula(Pelicula pelicula) {
|
||||||
|
this.pelicula = pelicula;
|
||||||
|
}
|
||||||
|
public Actor getActor() {
|
||||||
|
return actor;
|
||||||
|
}
|
||||||
|
public void setActor(Actor actor) {
|
||||||
|
this.actor = actor;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user