public class LabelsAnnotationWithWrongTye { /** * The labels field must be applied to a type of collection. */ @Labels private String labels = new String(); }
protected String uuid; @Labels protected Set<String> labels = new HashSet<>();
/** * Id is assigned, has no explicit label but a list of dynamic labels. * * @author Michael J. Simons */ @NodeEntity public class EntityWithImplicitPlusAdditionalLabels { @Id private String id; @Labels private List<String> labels; public String getId() { return id; } public void setId(String id) { this.id = id; } public List<String> getLabels() { return labels; } public void setLabels(List<String> labels) { this.labels = labels; } }
private Date launchDate; @Labels public Collection<String> labels = new ArrayList<>();
private Set<Owns> acquisitions; @Labels private Set<String> labels;
private Set<PizzaCheese> cheeses = new HashSet<>(); @Labels private List<String> labels = new ArrayList<>();