Closed hantsy closed 1 year ago
Currently using the @Column when specifying a name, we have to add name attribute explicitly.
@Column
We can add a value as alias of the name attribute.
BTW, in the @AttributeOverrides javadoc, there is an example like this.
@AttributeOverrides
@Embedded @AttributeOverrides({ @AttributeOverride(name="startDate", column=@Column("EMP_START")), @AttributeOverride(name="endDate", column=@Column("EMP_END")) }) public EmploymentPeriod getEmploymentPeriod() { ... }
This is problematic, if we do not have the value attribute of @Column.
I added a PR https://github.com/jakartaee/persistence/pull/386 to add the missing name in the above example codes.
name
Is there a value attribute planned to be added in the new version?
value
Currently using the
@Column
when specifying a name, we have to add name attribute explicitly.We can add a value as alias of the name attribute.
BTW, in the
@AttributeOverrides
javadoc, there is an example like this.This is problematic, if we do not have the value attribute of
@Column
.