Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.jboss.errai.demo.grocery.client.shared;
 
 import java.util.List;
 
Represents a grocery list: a collection of grocery items that is maintained by a particular user.

Author(s):
jfuerth
@NamedQuery(name="groceryListsForUser", query="SELECT gl FROM GroceryList gl WHERE gl.owner=:user")
public class GroceryList {
  private long id;
  private User owner;
  private List<Itemitems = new ArrayList<Item>();
  public long getId() {
    return ;
  }
  public User getOwner() {
    return ;
  }
  public void setOwner(User owner) {
    this. = owner;
  }
  public List<ItemgetItems() {
    return ;
  }
New to GrepCode? Check out our FAQ X