Package models

Examples of models.Marker.save()


public class Markers extends Application {
    @Secure(login = true)
    public static void add(String lng, String lat) {
        Logger.info(lng + " " + lat);
        Marker marker = new Marker(lng, lat);
        marker.save();
    }

    public static void list() {
        List<Marker> markers = Marker.findAll();
        StringBuilder builder = new StringBuilder("[");
View Full Code Here


    @Secure(login = true)
    public static void saveTitle(String title, String markerId) {
        Marker m = Marker.filter("_id", new ObjectId(markerId)).first();
        m.title = title;
        m.save();
    }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.