persistence icon indicating copy to clipboard operation
persistence copied to clipboard

Missing @MapKeyAttributeOverride

Open lukasj opened this issue 9 years ago • 3 comments

@AttributeOverride annotation cannot be used , if both key and value are Embeddable as defined in following case:

@ElementCollection
@AttributeOverride(name = "attribute_1", column = @Column(name = "ATTRIBUTE_1_OV"))
@AttributeOverride(name = "attribute_2", column = @Column(name = "ATTRIBUTE_2_OV"))
private Map<Embeddable_1, Embeddable_2> embeddableAttribte;

So it should be look like to override map key attribute :

@ElementCollection
@MapKeyAttributeOverride(name = "attribute_1", column = @Column(name = "ATTRIBUTE_1_OV"))
@AttributeOverride(name = "attribute_2", column = @Column(name = "ATTRIBUTE_2_OV"))
private Map<Embeddable_1, Embeddable_2> embeddableAttribte;

lukasj avatar Jun 27 '16 04:06 lukasj

  • Issue Imported From: https://github.com/javaee/jpa-spec/issues/129
  • Original Issue Raised By:@glassfishrobot
  • Original Issue Assigned To: @ldemichiel

lukasj avatar Aug 31 '18 16:08 lukasj

@glassfishrobot Commented Reported by gaurav.gupta

lukasj avatar Jun 27 '16 04:06 lukasj

@glassfishrobot Commented This issue was imported from java.net JIRA JPA_SPEC-129

lukasj avatar May 05 '17 06:05 lukasj