forked from IQSS/dataverse
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
633,765 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
package edu.harvard.iq.dataverse; | ||
|
||
import java.io.Serializable; | ||
import javax.persistence.*; | ||
|
||
/** | ||
* | ||
* @author juancorr | ||
* | ||
* CONSORCIO MADROÑO. New class to read the country codes for the statistics | ||
* visualization | ||
* | ||
*/ | ||
@Entity | ||
@Table (name = "countriesmap" , indexes = {@Index(columnList="id")}) | ||
@NamedQueries({ | ||
@NamedQuery(name = "CountriesMap.findAll", query= "SELECT f FROM CountriesMap f") | ||
}) | ||
public class CountriesMap implements Serializable { | ||
private static final long serialVersionUID = 1L; | ||
@Id | ||
@Column(name = "id", columnDefinition = "TEXT", nullable = false) | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
private String id; | ||
|
||
@Column(name = "name", columnDefinition = "TEXT", nullable = false) | ||
private String name; | ||
|
||
public String getName() { | ||
return this.name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
public String getId() { | ||
return id; | ||
} | ||
|
||
public void setId(String id) { | ||
this.id = id; | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
int hash = 0; | ||
hash += (id != null ? id.hashCode() : 0); | ||
return hash; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object object) { | ||
// TODO: Warning - this method won't work in the case the code fields are not set | ||
if (!(object instanceof CountriesMap)) { | ||
return false; | ||
} | ||
CountriesMap other = (CountriesMap) object; | ||
if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) { | ||
return false; | ||
} | ||
return true; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "edu.harvard.iq.dvn.core.vdc.CountriesMap[ id=" + id + " ]"; | ||
} | ||
} |
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
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.