Commit b9e30363 authored by Grzegorz Pietrusza's avatar Grzegorz Pietrusza

formatting

parent 82ea409c
...@@ -14,15 +14,18 @@ public class SolutionsRepository implements Repository ...@@ -14,15 +14,18 @@ public class SolutionsRepository implements Repository
private Datastore datastore; private Datastore datastore;
@Inject @Inject
public SolutionsRepository(Datastore datastore) { public SolutionsRepository(Datastore datastore)
{
this.datastore = datastore; this.datastore = datastore;
} }
public List<Solution> getAll() { public List<Solution> getAll()
{
return datastore.createQuery(Solution.class).asList(); return datastore.createQuery(Solution.class).asList();
} }
public void add(Solution solution) { //todo public void add(Solution solution)
{ //todo
datastore.save(solution); //todo: error handling? datastore.save(solution); //todo: error handling?
//todo: do not add if already exists //todo: do not add if already exists
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment