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