Permalink
Please sign in to comment.
Browse files
Add block, initial swagger dependencies and documentation
- Loading branch information...
Showing
with
216 additions
and 197 deletions.
- +19 −12 pom.xml
- +57 −0 src/main/java/org/geo/spatialsearch/census/model/Block2010.java
- +1 −3 src/main/java/org/geo/spatialsearch/census/model/CensusGeographyEnum.java
- +16 −114 src/main/java/org/geo/spatialsearch/census/rest/CensusLookupBaseResponse.java
- +20 −10 src/main/java/org/geo/spatialsearch/rest/api/impl/CensusResourceImpl.java
- +19 −52 src/main/java/org/geo/spatialsearch/service/impl/CensusServiceImpl.java
- +12 −0 src/main/resources/applicationContext-service.xml
- +1 −1 src/main/webapp/WEB-INF/web.xml
- +25 −0 src/test/java/org/geo/spatialsearch/service/CensusServiceTest.java
- +26 −0 src/test/resources/geo/mappings/Block2010.hbm.xml
- +15 −5 src/test/resources/geo/spatial-schema.sql
- +5 −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 = "Block") | ||
+@XmlRootElement(name = "Block") | ||
+@Entity | ||
+@Table(name = "block2010", schema = "census") | ||
+public class Block2010 extends CensusGeoBaseObject { | ||
+ | ||
+ @Column(name = "STATEFP10") | ||
+ private String statefp; | ||
+ | ||
+ @Column(name = "COUNTYFP10") | ||
+ private String countyfp; | ||
+ | ||
+ @Column(name = "GEOID10") | ||
+ private String geoid; | ||
+ | ||
+ public String getStatefp() { | ||
+ return statefp; | ||
+ } | ||
+ | ||
+ public void setStatefp(String statefp) { | ||
+ this.statefp = statefp; | ||
+ } | ||
+ | ||
+ public String getCountyfp() { | ||
+ return countyfp; | ||
+ } | ||
+ | ||
+ public void setCountyfp(String countyfp) { | ||
+ this.countyfp = countyfp; | ||
+ } | ||
+ | ||
+ public String getGeoid() { | ||
+ return geoid; | ||
+ } | ||
+ | ||
+ public void setGeoid(String geoid) { | ||
+ this.geoid = geoid; | ||
+ } | ||
+ | ||
+} |

Oops, something went wrong.
0 comments on commit
13f2742