Permalink
Please sign in to comment.
Showing
with
294 additions
and 166 deletions.
- +1 −1 src/main/java/org/geo/spatialsearch/census/model/CensusGeographyEnum.java
- +57 −0 src/main/java/org/geo/spatialsearch/census/model/County2010.java
- +39 −52 src/main/java/org/geo/spatialsearch/census/rest/CensusLookupBaseResponse.java
- +116 −107 src/main/java/org/geo/spatialsearch/service/impl/CensusServiceImpl.java
- +1 −0 src/main/resources/applicationContext-hibernate.xml
- +11 −0 src/main/resources/applicationContext-service.xml
- +22 −0 src/test/java/org/geo/spatialsearch/rest/integration/CensusResourceTest.java
- +16 −0 src/test/java/org/geo/spatialsearch/service/CensusServiceTest.java
- +26 −0 src/test/resources/geo/mappings/County2010.hbm.xml
- +1 −6 src/test/resources/geo/spatial-schema.sql
- +4 −0 src/test/resources/geo/spatial-test-data.sql
@@ -0,0 +1,57 @@ | ||
+package org.geo.spatialsearch.census.model; | ||
+ | ||
+import javax.persistence.Column; | ||
+import javax.persistence.Entity; | ||
+import javax.persistence.Table; | ||
+import javax.xml.bind.annotation.XmlAccessType; | ||
+import javax.xml.bind.annotation.XmlAccessorType; | ||
+import javax.xml.bind.annotation.XmlRootElement; | ||
+import javax.xml.bind.annotation.XmlType; | ||
+ | ||
+/** | ||
+ * | ||
+ * @author Juan Marin | ||
+ * | ||
+ */ | ||
+ | ||
+@XmlAccessorType(XmlAccessType.FIELD) | ||
+@XmlType(name = "County") | ||
+@XmlRootElement(name = "County") | ||
+@Entity | ||
+@Table(name = "county2010", schema = "census") | ||
+public class County2010 extends CensusGeoBaseObject { | ||
+ | ||
+ @Column(name = "STATEFP10") | ||
+ private String statefp10; | ||
+ | ||
+ @Column(name = "GEOID10") | ||
+ private String geoid; | ||
+ | ||
+ @Column(name = "NAME10") | ||
+ private String name; | ||
+ | ||
+ public String getStatefp10() { | ||
+ return statefp10; | ||
+ } | ||
+ | ||
+ public void setStatefp10(String statefp10) { | ||
+ this.statefp10 = statefp10; | ||
+ } | ||
+ | ||
+ public String getGeoid() { | ||
+ return geoid; | ||
+ } | ||
+ | ||
+ public void setGeoid(String geoid) { | ||
+ this.geoid = geoid; | ||
+ } | ||
+ | ||
+ public String getName() { | ||
+ return name; | ||
+ } | ||
+ | ||
+ public void setName(String name) { | ||
+ this.name = name; | ||
+ } | ||
+ | ||
+} |

Oops, something went wrong.
0 comments on commit
1ab2017