It would be nice to support implicit table name of all the fields as per the table definition for class EmbeddableWithCodes , this way entire overide
@AttributeOverrides( {@AttributeOverride(name = "code1.code", column = @Column(table = SECONDARY, name = "CODE1")), @AttributeOverride(name = "code2.code", column = @Column(table = SECONDARY, name = "CODE2")), @AttributeOverride(name = "name", column = @Column(table = SECONDARY, name = "NAME"))}
)
can be avoided
So far we have seen Code Mess now with current approach is annotations mess.
|