Update of /cvsroot/magicmap/magicmapserver/dblayer/src/net/sf/magicmap/db
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16660/dblayer/src/net/sf/magicmap/db
Modified Files:
Map.java
Log Message:
Index: Map.java
===================================================================
RCS file: /cvsroot/magicmap/magicmapserver/dblayer/src/net/sf/magicmap/db/Map.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** Map.java 23 Jan 2005 18:10:52 -0000 1.2
--- Map.java 19 Feb 2006 17:43:58 -0000 1.3
***************
*** 123,126 ****
--- 123,138 ----
/**
+ * Positionen für diese Karte
+ *
+ * @jdo.field
+ * persistence-modifier="persistent"
+ * collection-type="collection"
+ * element-type="GeoPosition"
+ * dependent="true"
+ * mapped-by="map"
+ **/
+ Collection GeoPositions = new HashSet();
+
+ /**
* @param name
* @param imageURL
***************
*** 243,245 ****
--- 255,273 ----
this.imageWidth = imageWidth;
}
+
+ /**
+ * @return Returns the geoPositions.
+ */
+
+ public Collection getGeoPositions() {
+ return GeoPositions;
+ }
+
+ public void addGeoPosition(GeoPosition p){
+ this.positions.add(p);
+ }
+
+ public void removeGeoPosition(GeoPosition p){
+ this.positions.remove(p);
+ }
}
\ No newline at end of file
|