From 2013c4b84bd127daa975a37c87f6ab47125a504f Mon Sep 17 00:00:00 2001 From: Nathan Cannon Date: Tue, 9 Oct 2018 16:35:50 +0100 Subject: [PATCH] Forced explicit imports. --- .../co/neviyn/observationdatabase/Controller.kt | 7 ++++++- .../uk/co/neviyn/observationdatabase/Entity.kt | 16 +++++++++++++++- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/backend/src/main/kotlin/uk/co/neviyn/observationdatabase/Controller.kt b/backend/src/main/kotlin/uk/co/neviyn/observationdatabase/Controller.kt index e3c563a..a4149c5 100644 --- a/backend/src/main/kotlin/uk/co/neviyn/observationdatabase/Controller.kt +++ b/backend/src/main/kotlin/uk/co/neviyn/observationdatabase/Controller.kt @@ -2,7 +2,12 @@ package uk.co.neviyn.observationdatabase import org.joda.time.LocalDate import org.springframework.beans.factory.annotation.Autowired -import org.springframework.web.bind.annotation.* +import org.springframework.web.bind.annotation.GetMapping +import org.springframework.web.bind.annotation.PathVariable +import org.springframework.web.bind.annotation.PostMapping +import org.springframework.web.bind.annotation.RequestBody +import org.springframework.web.bind.annotation.RequestMapping +import org.springframework.web.bind.annotation.RestController import javax.validation.Valid @RestController diff --git a/backend/src/main/kotlin/uk/co/neviyn/observationdatabase/Entity.kt b/backend/src/main/kotlin/uk/co/neviyn/observationdatabase/Entity.kt index 2ee48e4..eb67f84 100644 --- a/backend/src/main/kotlin/uk/co/neviyn/observationdatabase/Entity.kt +++ b/backend/src/main/kotlin/uk/co/neviyn/observationdatabase/Entity.kt @@ -3,7 +3,21 @@ package uk.co.neviyn.observationdatabase import com.fasterxml.jackson.annotation.JsonIgnore import com.fasterxml.jackson.annotation.JsonProperty import org.joda.time.LocalDate -import javax.persistence.* +import javax.persistence.Column +import javax.persistence.ElementCollection +import javax.persistence.Embeddable +import javax.persistence.Entity +import javax.persistence.FetchType +import javax.persistence.GeneratedValue +import javax.persistence.GenerationType +import javax.persistence.Id +import javax.persistence.Index +import javax.persistence.JoinColumn +import javax.persistence.JoinTable +import javax.persistence.ManyToMany +import javax.persistence.ManyToOne +import javax.persistence.OneToMany +import javax.persistence.Table /** * Defines a location at which observations occur.