* Terms - Prepared support for rename * ObjectType.java - Added ID for serialization - Added RELATIONSHIP class constant * struts.xml - Added Relationship actions * General - Relationships between two terms can be added and listed - Clean-up: + Renamed methods according to their purpose + Fixed RDM and corresponding properties/annotations + RelationShipTypeAction.java
/trunk/src/ch/ffhs/webE/dao/RelationshipDAOImpl.java |
---|
File deleted |
\ No newline at end of file |
Property changes: |
Deleted: svn:mime-type |
## -1 +0,0 ## |
-text/plain |
\ No newline at end of property |
Index: TermDAO.java |
=================================================================== |
--- TermDAO.java (revision 34) |
+++ TermDAO.java (revision 33) |
@@ -14,7 +14,7 @@ |
/** |
* @return |
*/ |
- List<Term> getTerms(); |
+ List<Term> listTerm(); |
/** |
* Delete a term |
/trunk/src/ch/ffhs/webE/dao/TermDAOImpl.java |
---|
31,13 → 31,13 |
Transaction transaction; |
/** |
* Returns a list of all terms |
* Creates a list of all terms |
* |
* @return an ArrayList with all the terms - in case of a problem, an empty |
* @return an ArrayList with all the users - in case of a problem, an empty |
* list is returned |
*/ |
@SuppressWarnings("unchecked") |
public List<Term> getTerms() |
public List<Term> listTerm() |
{ |
List<Term> term = null; |
try |
/trunk/src/ch/ffhs/webE/dao/RelationshipTypeDAO.java |
---|
6,11 → 6,11 |
public interface RelationshipTypeDAO { |
List<RelationshipType> getRelTypes(); |
List<RelationshipType> listRelationshipTypes(); |
boolean deleteRelationshipType(int relTypeID); |
RelationshipType getRelTypeById(int relTypeID); |
RelationshipType listRelTypeById(int relTypeID); |
boolean saveOrUpdateRelType(RelationshipType relType); |
} |
/trunk/src/ch/ffhs/webE/dao/RelationshipTypeDAOImpl.java |
---|
26,7 → 26,7 |
*/ |
@SuppressWarnings("unchecked") |
@Override |
public List<RelationshipType> getRelTypes() |
public List<RelationshipType> listRelationshipTypes() |
{ |
List<RelationshipType> relType = null; |
100,7 → 100,7 |
* Used to get a relationship type by ID |
*/ |
@Override |
public RelationshipType getRelTypeById(int relTypeID) |
public RelationshipType listRelTypeById(int relTypeID) |
{ |
RelationshipType relType = null; |
try |