private Long id; @Properties(prefix = "custom") private Map<String, Object> properties = new HashMap<>();
/** * @author Frantisek Hartman */ @NodeEntity public class UserWithInvalidPropertiesType { private Long id; @Properties List<String> properties; }
/** * @author Michael J. Simons * @soundtrack Eric Fish - Reden */ @NodeEntity public class SomeNode { private Long id; @Properties(prefix = "myPrefix") private Map<String, Object> prefixedProperties; public Long getId() { return id; } public Map<String, Object> getPrefixedProperties() { return prefixedProperties; } }
@Properties private Map<String, Object> myProperties; @Properties(prefix = "myPrefix") private Map<String, Object> prefixedProperties; @Properties(delimiter = "__") private Map<String, Object> delimiterProperties; @Properties(allowCast = true) private Map<String, Integer> integerProperties; @Properties(allowCast = true) private Map<String, Object> allowCastProperties;
@Properties private Map<UserProperties, Object> myProperties;
private Place place; @Properties private Map<String, String> properties;