public void setPositionTags(List<Position> positionTags) { Set<Position> result = new HashSet<Position>(); if (positionTags != null && !positionTags.isEmpty()) { result.addAll(positionTags); } tag.setPositionTags(result); }
/** * 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; }
public void setPosition(Set<Position> positions) { tag.setPositionTags(positions); }