I have a database with the following structure:
CREATE TABLE entity ( id SERIAL, name VARCHAR(255), PRIMARY KEY (id) ); CREATE TABLE entity_prop
I guess you can use @CollectionOfElements (for hibernate/jpa 1) / @ElementCollection (jpa 2) to map a collection of "entity properties" to a List in entity.
List
entity
You can create the EntityProperty type and annotate it with @Embeddable
EntityProperty
@Embeddable