Skip to content

Instantly share code, notes, and snippets.

@k33g
Created March 4, 2011 05:53
Show Gist options
  • Save k33g/854245 to your computer and use it in GitHub Desktop.
Save k33g/854245 to your computer and use it in GitHub Desktop.
JSonItems / Play!
package controllers;
import java.util.List;
import models.Item;
import models.JItem;
import play.mvc.*;
public class JSonItems extends Controller{
public static void getList(){
//List<Item> items = Item.all().fetch();
List<Item> items = Item.findAll();
renderJSON(JItem.geList(items));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment