Example #1
0
 public void setPositionTags(List<Position> positionTags) {
   Set<Position> result = new HashSet<Position>();
   if (positionTags != null && !positionTags.isEmpty()) {
     result.addAll(positionTags);
   }
   tag.setPositionTags(result);
 }
Example #2
0
  /**
   * Create a new empty instance of the one-to-many field
   *
   * @return forward to the same page
   */
  public String editPositionTags() {
    Position item = new Position();

    if (tag.getPositionTags() == null) {
      tag.setPositionTags(new HashSet());
    }
    tag.getPositionTags().add(item);
    return null;
  }
Example #3
0
 public void setPosition(Set<Position> positions) {
   tag.setPositionTags(positions);
 }