comparison flys-backend/src/main/java/de/intevation/flys/importer/ImportAnnotationType.java @ 766:aa9e3da95c31

Importer: Fix import of annotation type classification. flys-backend/trunk@2163 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Sun, 19 Jun 2011 17:43:38 +0000
parents 8076f6a689d0
children
comparison
equal deleted inserted replaced
765:763c4137d6e1 766:aa9e3da95c31
22 22
23 public int compareTo(ImportAnnotationType other) { 23 public int compareTo(ImportAnnotationType other) {
24 return name.compareTo(other.name); 24 return name.compareTo(other.name);
25 } 25 }
26 26
27 public String getName() {
28 return name;
29 }
30
31 public void setName(String name) {
32 this.name = name;
33 }
34
35
27 public AnnotationType getPeer() { 36 public AnnotationType getPeer() {
28 if (peer == null) { 37 if (peer == null) {
29 Session session = ImporterSession.getInstance().getDatabaseSession(); 38 Session session = ImporterSession.getInstance().getDatabaseSession();
30 Query query = session.createQuery( 39 Query query = session.createQuery(
31 "from AnnotationType where name=:name"); 40 "from AnnotationType where name=:name");

http://dive4elements.wald.intevation.org