Rev 33 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 33 | Rev 34 | ||
---|---|---|---|
Line 29... | Line 29... | ||
29 | */
|
29 | */
|
30 | @TransactionTarget |
30 | @TransactionTarget |
31 | Transaction transaction;
|
31 | Transaction transaction;
|
32 | 32 | ||
33 | /**
|
33 | /**
|
34 | * Creates a list of all terms
|
34 | * Returns a list of all terms
|
35 | *
|
35 | *
|
36 | * @return an ArrayList with all the users - in case of a problem, an empty
|
36 | * @return an ArrayList with all the terms - in case of a problem, an empty
|
37 | * list is returned
|
37 | * list is returned
|
38 | */
|
38 | */
|
39 | @SuppressWarnings("unchecked") |
39 | @SuppressWarnings("unchecked") |
40 | public List<Term> listTerm() |
40 | public List<Term> getTerms() |
41 | {
|
41 | {
|
42 | List<Term> term = null; |
42 | List<Term> term = null; |
43 | try
|
43 | try
|
44 | {
|
44 | {
|
45 | term = this.session.createQuery("from Term").list(); //$NON-NLS-1$ |
45 | term = this.session.createQuery("from Term").list(); //$NON-NLS-1$ |