IBM Support

PH29809: ECLIPSELINK IGNORES LOWERCASE ATTRIBUTEOVERRIDE VALUES ON ELEMENTCOLLECTIONS

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • EclipseLink ignores @AttributeOverride values on
    @ElementCollections if the @Column value is lowercase. This
    effects both JPQL and schema generation where the SQL doesn't
    match the expected attribute overrides.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server                                      *
    ****************************************************************
    * PROBLEM DESCRIPTION: EclipseLink SQL and DDL generation      *
    *                      ignores @AttributeOverride values       *
    *                      when the overridden columns are lower   *
    *                      case                                    *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    EclipseLink's SQL and DDL generation will ignore
    @AttributeOverride values and generate statements that are
    unexpected.
    Example:
    ´´´
    @Entity
    public class WealthyPerson {
    @Id
    protected String ssn;
    @ElementCollection
    @CollectionTable(name = "HOMES") // use default join
    column name
    @AttributeOverrides({
    @AttributeOverride(name = "street", column =
    @Column(name = "home_street"))
    })
    protected Set<Address> vacationHomes;
    }
    @Embeddable
    public class Address {
    @Column(name="du_street")
    protected String street;
    }
    &#180;&#180;&#180;
    With this mapping, EclipseLink is generating DDL and JPQL that
    include the column name &#180;du_street&#180; instead of the column
    override &#180;home_street&#180;.
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PH29809

  • Reported component name

    WEBSPHERE APP S

  • Reported component ID

    5724J0800

  • Reported release

    900

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2020-09-24

  • Closed date

    2020-11-17

  • Last modified date

    2020-11-17

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    WEBSPHERE APP S

  • Fixed component ID

    5724J0800

Applicable component levels

  • R900 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"9.0","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
01 November 2021