IBM Support

PH41073: ECLIPSELINK WEAVED ENTITY HAS NULL VALUE IN HIDDEN ATTRIBUTE

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

  • When accessing hidden attributes of EclipseLink weaved
    mappedsuperclasses, the value returned may be null.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server - Java Persistence API - JPA 2.1 &   *
    *                  EclipseLink                                 *
    ****************************************************************
    * PROBLEM DESCRIPTION: EclipseLink sets null value when        *
    *                      weaving hidden class attributes         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When weaving entity classes, EclipseLink ignores attribute
    fields with the same name as super class attributes (also
    called hidden attributes).
    Example:
    ´´´
    @MappedSuperclass
    public abstract class AbstractBE {
    private String parentOnlyAttribute;
    private Short hiddenAttribute;
    }
    @Entity
    public class EntityA extends AbstractBE {
    @Id private long id;
    private Short hiddenAttribute;
    }
    ´´´
    Test:
    ´´´
    EntityManager em = emf.createEntityManager();
    EntityA e = em.find(EntityA.class, 123456l);
    ´´´
    Result: e.getHiddenAttribute() is NULL.
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PH41073

  • Reported component name

    WEBSPHERE FOR Z

  • Reported component ID

    5655I3500

  • Reported release

    900

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2021-10-04

  • Closed date

    2021-12-21

  • Last modified date

    2021-12-21

  • 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 FOR Z

  • Fixed component ID

    5655I3500

Applicable component levels

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

Document Information

Modified date:
22 December 2021