Commit 8fdabbb1 by Antti Tonkyra

VotingBean now throws in the event

1 parent 893660af
......@@ -23,6 +23,8 @@ public class VotingBean implements VotingBeanLocal {
private CompoFacade compoFacade;
@EJB
private VoteFacade voteFacade;
@EJB
private EventBean eventBean;
/**
* Default constructor.
......@@ -36,6 +38,7 @@ public class VotingBean implements VotingBeanLocal {
}
public void createCompo(Compo c) {
c.setEvent(eventBean.getCurrentEvent());
compoFacade.create(c);
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!