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