I'm trying to figure out how to use a different collumn name for my key id than mapkey_id.
Is this possible?
This is my current annotation:
@CollectionOfElements(fetch=FetchType.LAZY) @JoinTable(name="Contact_CustomField", joinColumns={@JoinColumn(name="Contact_id")}) @org.hibernate.annotations.MapKey(columns={@Column(name="CustomField_id")}) @Column(name="CustomFieldOption_ID", nullable=false, columnDefinition="BIGINT(10)") private Map<CustomField, CustomFieldOption> customFields = new HashMap<CustomField, CustomFieldOption>();
This is the db it wants:
+------------+-----------------+-----------+ | Contact_id | customFields_id | mapkey_id | +------------+-----------------+-----------+
|