Commit d4112694 authored by Grzegorz Pietrusza's avatar Grzegorz Pietrusza

fix broken constructor

parent 7a57945d
...@@ -16,10 +16,6 @@ public abstract class Repository<T> ...@@ -16,10 +16,6 @@ public abstract class Repository<T>
this.datastore = datastore; this.datastore = datastore;
} }
protected Repository()
{
}
public void add(T item) public void add(T item)
{ {
datastore.save(item); datastore.save(item);
......
...@@ -5,6 +5,7 @@ import com.telephoners.krakyournet.ctf.beans.Team; ...@@ -5,6 +5,7 @@ import com.telephoners.krakyournet.ctf.beans.Team;
import com.telephoners.krakyournet.ctf.beans.tasks.Task; import com.telephoners.krakyournet.ctf.beans.tasks.Task;
import org.mongodb.morphia.Datastore; import org.mongodb.morphia.Datastore;
import javax.inject.Inject;
import javax.inject.Singleton; import javax.inject.Singleton;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
...@@ -16,15 +17,12 @@ import java.util.stream.Collectors; ...@@ -16,15 +17,12 @@ import java.util.stream.Collectors;
@Singleton @Singleton
public class SolutionsRepository extends Repository<Solution> public class SolutionsRepository extends Repository<Solution>
{ {
@Inject
public SolutionsRepository(Datastore datastore) public SolutionsRepository(Datastore datastore)
{ {
super(datastore); super(datastore);
} }
public SolutionsRepository()
{
}
public List<Solution> getByTeam(Team team) public List<Solution> getByTeam(Team team)
{ {
//todo: merge with upper //todo: merge with upper
......
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