'Basic' attribute type should not be a container java code example Example: 'Basic' attribute type should not be a container @ElementCollection private List<String> tags;