Package com.adaptrex.core.ext.data

Examples of com.adaptrex.core.ext.data.ModelInstance


   
    /*
     * We need to do some formatting on the response
     */
    Map<String,Object> response = new HashMap<String,Object>();
    ModelInstance modelInstance = model.getModelInstance();
   
    response.put("data", modelInstance.getData());
    response.put("id", modelInstance.getData().get("id"))// TODO: We should have a way to get id's named other than "id"
    response.put("success", true);
   
    printStream.print(StringUtilities.json(response));
    printStream.close();
  }
View Full Code Here

TOP

Related Classes of com.adaptrex.core.ext.data.ModelInstance

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.