Package models

Examples of models.Employee


import com.google.gson.GsonBuilder;

public class Application extends Controller {

    public static void index() {
      Employee emp = new Employee();
      emp.firstName = "alpha";
      emp.lastName = "beta";
      emp.blob = new Blob(new byte[] { 0x00, 0x01 });
     
      emp.insert();
      try {
        Logger.info("blob:%d %d", emp.blob.getBytes()[0], emp.blob.getBytes()[1]);
      }catch(Exception ex){}
        render();
    }
View Full Code Here


      render(questions);
     
    }

    public static void getServices(Long id, GeolocationService type) {
      Employee emp = Employee.all().filter("id", id).get();
     
        List<ServiceAccount> services = emp.services.filter("geoloc", type).fetch();
        render(services);
    }
View Full Code Here

TOP

Related Classes of models.Employee

Copyright © 2018 www.massapicom. 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.