I have a JPA Entity where I need to reference a list of nested object references.
I do not want a separate Entity and separate table for this nested object to not pollute my DB schema.
@ElementCollection
only work with serializable types so this is one is out.
@Embeddable
wouldn’t work with List
.
What options do I have?
Tried with @ElementCollection
, separate Entity and @Embeddable