Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Codecrew
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
30
Merge Requests
2
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 6d882242
authored
Oct 31, 2010
by
Juho Juopperi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fejwioijoewf
1 parent
d6de95c1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
code/LanBortalBeans/ejbModule/fi/insomnia/bortal/beans/PollBean.java
code/LanBortalBeans/ejbModule/fi/insomnia/bortal/beans/PollBean.java
View file @
6d88224
...
...
@@ -9,9 +9,11 @@ import javax.ejb.Stateless;
import
fi.insomnia.bortal.facade.PollAnswerFacade
;
import
fi.insomnia.bortal.facade.PollFacade
;
import
fi.insomnia.bortal.facade.PossibleAnswerFacade
;
import
fi.insomnia.bortal.model.Poll
;
import
fi.insomnia.bortal.model.PollAnswer
;
import
fi.insomnia.bortal.model.PollQuestion
;
import
fi.insomnia.bortal.model.PossibleAnswer
;
/**
* Session Bean implementation class PollBean
...
...
@@ -32,6 +34,9 @@ public class PollBean implements PollBeanLocal {
@EJB
private
UserBean
userBean
;
@EJB
private
PossibleAnswerFacade
possibleAnswerFacade
;
/**
* Default constructor.
*/
...
...
@@ -85,4 +90,10 @@ public class PollBean implements PollBeanLocal {
return
false
;
}
@Override
public
PossibleAnswer
findPossibleAnwerById
(
int
id
)
{
PossibleAnswer
ans
=
possibleAnswerFacade
.
find
(
eventBean
.
getCurrentEvent
().
getId
(),
new
Integer
(
id
));
return
ans
;
}
}
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment