1718192021222324
public class ItemsOrderedService implements RepositoryService<ItemsOrdered> { @Override public ItemsOrdered store(ItemsOrdered itemsOrdered) { ItemsOrderedDAO repository = new ItemsOrderedDAO(); return repository.save(itemsOrdered); }
242526272829303132
} @Override public void remove(ItemsOrdered itemsOrdered) { ItemsOrderedDAO repository = new ItemsOrderedDAO(); repository.delete(itemsOrdered); }
3233343536373839
} @Override public Collection<ItemsOrdered> getAll() { ItemsOrderedDAO repository = new ItemsOrderedDAO(); return repository.getAll(); }
3839404142434445
return repository.getAll(); } @Override public ItemsOrdered getById(Serializable id) { ItemsOrderedDAO repository = new ItemsOrderedDAO(); return repository.get(id); }