From de24f09d0869b2654f68905d9050523f3c06ecdf Mon Sep 17 00:00:00 2001 From: vigliom Date: Tue, 8 Nov 2022 16:22:53 +0100 Subject: [PATCH] . --- src/main/java/com/jorpelu/model/Film.java | 96 ++++++++++++++++++ .../com.jorpelu/MovieAdviser/pom.properties | 2 +- target/classes/com/jorpelu/model/Film.class | Bin 0 -> 2404 bytes 3 files changed, 97 insertions(+), 1 deletion(-) create mode 100644 src/main/java/com/jorpelu/model/Film.java create mode 100644 target/classes/com/jorpelu/model/Film.class diff --git a/src/main/java/com/jorpelu/model/Film.java b/src/main/java/com/jorpelu/model/Film.java new file mode 100644 index 0000000..f7ea4f3 --- /dev/null +++ b/src/main/java/com/jorpelu/model/Film.java @@ -0,0 +1,96 @@ +package com.jorpelu.model; + +import java.util.List; + +public class Film { + private long id; + private String title; + private String year; + private List generos; + + public Film() { + + } + + public Film(long id, String title, String year, List generos) { + super(); + this.id = id; + this.title = title; + this.year = year; + this.generos = generos; + } + + public long getId() { + return id; + } + + public void setId(long id) { + this.id = id; + } + + public String getTitle() { + return title; + } + + public void setTitle(String title) { + this.title = title; + } + + public String getYear() { + return year; + } + + public void setYear(String year) { + this.year = year; + } + + public List getGeneros() { + return generos; + } + + public void setGeneros(List generos) { + this.generos = generos; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((generos == null) ? 0 : generos.hashCode()); + result = prime * result + (int) (id ^ (id >>> 32)); + result = prime * result + ((title == null) ? 0 : title.hashCode()); + result = prime * result + ((year == null) ? 0 : year.hashCode()); + return result; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + Film other = (Film) obj; + if (generos == null) { + if (other.generos != null) + return false; + } else if (!generos.equals(other.generos)) + return false; + if (id != other.id) + return false; + if (title == null) { + if (other.title != null) + return false; + } else if (!title.equals(other.title)) + return false; + if (year == null) { + if (other.year != null) + return false; + } else if (!year.equals(other.year)) + return false; + return true; + } + + +} diff --git a/target/classes/META-INF/maven/com.jorpelu/MovieAdviser/pom.properties b/target/classes/META-INF/maven/com.jorpelu/MovieAdviser/pom.properties index 0ae5349..ae67429 100644 --- a/target/classes/META-INF/maven/com.jorpelu/MovieAdviser/pom.properties +++ b/target/classes/META-INF/maven/com.jorpelu/MovieAdviser/pom.properties @@ -1,5 +1,5 @@ #Generated by Maven Integration for Eclipse -#Tue Nov 08 15:52:36 CET 2022 +#Tue Nov 08 16:22:35 CET 2022 m2e.projectLocation=C\:\\Users\\jorge\\OneDrive\\Documentos\\ProyectosSPRING\\MovieAdviser m2e.projectName=MovieAdviser groupId=com.jorpelu diff --git a/target/classes/com/jorpelu/model/Film.class b/target/classes/com/jorpelu/model/Film.class new file mode 100644 index 0000000000000000000000000000000000000000..9835ff745b105d7ccfcda01c8bd021e42fffaf92 GIT binary patch literal 2404 zcmbVMO>Y}j6g|(MjXP=Fd^N7)IzUPtJFQ#VLTTKTk|u3Z_ltx;3kW93kWA!{FdkRx zqGG{@4MGuYU=M791X2>zE)c6$;zuFQedDnk$JumY&wKaXIrp6V&Yge%d-gYgb0|g; zP#9dUmhjUk9$14q!K&{MQ4)}4BJ$#NFVC68To*(@!ZjxGB}FyyY; zc9_6JG-6Jrm> ztJe&?k14P9Qzf&;gS1U>wZGjg6!#b-GC7mog^ zQ~LNHBMkUj2;J!CN?u|T1~AB{032h62RWpHejp7gpA?{MdIyQ@=^gG8p&g{MiSQ26 z0w09HAJ?gI!XKsCdkNRaGX0DX=yDfWicpPmvJ!1VA*t1g;-riT5o9F_!|a7mR3hDs zD7=n0_%BNHBuk2HvL zCUB}r#BcdFl7F-j8Rz{n%+1;*Mr}RATE>t1kxyw(-q9|BeI06TF;2bt6{w$ zOy(8HI*iYmSzu3;d~!S;D$mIg9h=$QuLy^>axV}LZe@4zUXH(CWRv>`>b9rO7^kx5 zIK~VvWb+i)1Nd3LLxqeae*CGiqd>_|KF5I0Ps(N&Gk!LO%6ZB^PszqV54A*pi3AB= zr+{h7pW%q#;85Sh5N7$Im}3)eajJ@R(QOX*9ZI{4Yq-bVeXc&hBIfZK7AXHil)0|E0z8Sav2l)`2-T(jq literal 0 HcmV?d00001