persistence
                                
                                 persistence copied to clipboard
                                
                                    persistence copied to clipboard
                            
                            
                            
                        Missing @MapKeyAttributeOverride
@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;
- Issue Imported From: https://github.com/javaee/jpa-spec/issues/129
- Original Issue Raised By:@glassfishrobot
- Original Issue Assigned To: @ldemichiel
@glassfishrobot Commented Reported by gaurav.gupta
@glassfishrobot Commented This issue was imported from java.net JIRA JPA_SPEC-129