-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial commit of branch locanda-questura
-New models.questura -New mappers questura -New sqlTables -New services questura -New resources questura
- Loading branch information
paolo
authored and
paolo
committed
Oct 23, 2012
1 parent
0039710
commit 8448140
Showing
29 changed files
with
1,679 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
/******************************************************************************* | ||
* | ||
* Copyright 2011 - Sardegna Ricerche, Distretto ICT, Pula, Italy | ||
* | ||
* Licensed under the EUPL, Version 1.1. | ||
* You may not use this work except in compliance with the Licence. | ||
* You may obtain a copy of the Licence at: | ||
* | ||
* http://www.osor.eu/eupl | ||
* | ||
* Unless required by applicable law or agreed to in writing, software distributed under the Licence is distributed on an "AS IS" basis, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the Licence for the specific language governing permissions and limitations under the Licence. | ||
* In case of controversy the competent court is the Court of Cagliari (Italy). | ||
*******************************************************************************/ | ||
package model; | ||
|
||
import java.io.Serializable; | ||
import java.util.Date; | ||
|
||
import model.questura.CodiceAlloggiato; | ||
|
||
import javax.xml.bind.annotation.XmlRootElement; | ||
|
||
|
||
|
||
import org.apache.solr.client.solrj.beans.Field; | ||
import org.codehaus.jackson.annotate.JsonIgnoreProperties; | ||
|
||
@XmlRootElement | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class Alloggiato implements Serializable{ | ||
|
||
@Field | ||
private Integer id; | ||
@Field | ||
private Integer idBooking; | ||
private Guest guest; | ||
private CodiceAlloggiato codiceAlloggiato; | ||
|
||
private Date fromDate; | ||
private Date toDate; | ||
|
||
|
||
|
||
|
||
@Override | ||
public int hashCode() { | ||
final int prime = 31; | ||
int result = 1; | ||
result = prime * result + ((id == null) ? 0 : id.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; | ||
Alloggiato other = (Alloggiato) obj; | ||
if (id == null) { | ||
if (other.id != null) | ||
return false; | ||
} else if (!id.equals(other.id)) | ||
return false; | ||
return true; | ||
} | ||
public Integer getId() { | ||
return id; | ||
} | ||
public void setId(Integer id) { | ||
this.id = id; | ||
} | ||
public Guest getGuest() { | ||
return guest; | ||
} | ||
public void setGuest(Guest guest) { | ||
this.guest = guest; | ||
} | ||
public CodiceAlloggiato getCodiceAlloggiato() { | ||
return codiceAlloggiato; | ||
} | ||
public void setCodiceAlloggiato(CodiceAlloggiato codiceAlloggiato) { | ||
this.codiceAlloggiato = codiceAlloggiato; | ||
} | ||
public Date getFromDate() { | ||
return fromDate; | ||
} | ||
public void setFromDate(Date fromDate) { | ||
this.fromDate = fromDate; | ||
} | ||
public Date getToDate() { | ||
return toDate; | ||
} | ||
public void setToDate(Date toDate) { | ||
this.toDate = toDate; | ||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
/******************************************************************************* | ||
* | ||
* Copyright 2011 - Sardegna Ricerche, Distretto ICT, Pula, Italy | ||
* | ||
* Licensed under the EUPL, Version 1.1. | ||
* You may not use this work except in compliance with the Licence. | ||
* You may obtain a copy of the Licence at: | ||
* | ||
* http://www.osor.eu/eupl | ||
* | ||
* Unless required by applicable law or agreed to in writing, software distributed under the Licence is distributed on an "AS IS" basis, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the Licence for the specific language governing permissions and limitations under the Licence. | ||
* In case of controversy the competent court is the Court of Cagliari (Italy). | ||
*******************************************************************************/ | ||
package model; | ||
|
||
import java.io.Serializable; | ||
|
||
import model.questura.Comune; | ||
import model.questura.Nazione; | ||
import model.questura.TipoDocumento; | ||
import model.questura.Luogo; | ||
|
||
|
||
import javax.xml.bind.annotation.XmlRootElement; | ||
|
||
|
||
|
||
import org.apache.solr.client.solrj.beans.Field; | ||
import org.codehaus.jackson.annotate.JsonIgnoreProperties; | ||
|
||
@XmlRootElement | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class Documento implements Serializable{ | ||
|
||
|
||
private Integer id; | ||
@Field | ||
private TipoDocumento tipoDocumento; | ||
@Field | ||
private String numeroDocumento; //max 20 char | ||
@Field | ||
private Luogo luogoRilascio; //Nazione OR Comune Type | ||
|
||
|
||
|
||
@Override | ||
public int hashCode() { | ||
final int prime = 31; | ||
int result = 1; | ||
result = prime * result + ((id == null) ? 0 : id.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; | ||
Documento other = (Documento) obj; | ||
if (id == null) { | ||
if (other.id != null) | ||
return false; | ||
} else if (!id.equals(other.id)) | ||
return false; | ||
return true; | ||
} | ||
public Integer getId() { | ||
return id; | ||
} | ||
public void setId(Integer id) { | ||
this.id = id; | ||
} | ||
public TipoDocumento getTipoDocumento() { | ||
return tipoDocumento; | ||
} | ||
public void setTipoDocumento(TipoDocumento tipoDocumento) { | ||
this.tipoDocumento = tipoDocumento; | ||
} | ||
public String getNumeroDocumento() { | ||
return numeroDocumento; | ||
} | ||
public void setNumeroDocumento(String numeroDocumento) { | ||
this.numeroDocumento = numeroDocumento; | ||
} | ||
public Luogo getLuogoRilascio() { | ||
return luogoRilascio; | ||
} | ||
public void setLuogoRilascio(Luogo luogoRilascio) { | ||
this.luogoRilascio = luogoRilascio; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.