IBM Support

PM70224: INCORRECT SQL GENERATED WHEN AN @VERSIONSTRATEGY OF ROWCHANGETIMESTAMPSTRATEGY IS USED.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Incorrect SQL is generated when a user's JPA entity uses an
    @VersionStrategy of
    'com.ibm.websphere.persistence.RowChangeTimestampStrategy'.
    

Local fix

  • N/A
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server V7.0.0, V8.0.0, and V8.5.0 who make  *
    *                  use of an @VersionStrategy of               *
    *                  RowChangeTimestampStrategy.                 *
    ****************************************************************
    * PROBLEM DESCRIPTION: Incorrect SQL is generated when an      *
    *                      @VersionStrategy of                     *
    *                      RowChangeTimestampStrategy is used.     *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    There exists the potential for incorrect SQL to be generated
    when your JPA entity uses an @VersionStrategy of
    'com.ibm.websphere.persistence.RowChangeTimestampStrategy'.
    For
    example, take the following JPA Entity definition:
    @Entity
    @VersionStrategy("com.ibm.websphere.persistence.
    RowChangeTimestampStrategy")
    public class ChildEntity implements Serializable {
    .....
    @Id
    int id;
    @Version
    private Timestamp lupdDatetime;
    .....
    The incorrectly SQL generating is missing your schema name.
    For example, if you specify a schema name via the
    "openjpa.jdbc.Schema" property of say 'mySchema'.  In
    this case, SQL generated for CRUD operations on the field
    'lupdDatetime' will not contain the schema name of 'mySchema'.
    

Problem conclusion

  • With this fix, code has been added to ensure that the proper
    SQL is generated when an entity uses
    'com.ibm.websphere.persistence.RowChangeTimestampStrategy' as
    a VersionStrategy.
    
    The fix for this APAR is currently targeted for
    inclusion in Service Levels (Fix Packs) 7.0.0.25, 8.0.0.5, and
    8.5.0.1 of WebSphere Application Server versions 7.0.0,
    8.0.0, and 8.5.0.
    
    Please refer to the recommended updates page for delivery
    information:
    http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM70224

  • Reported component name

    LIBERTY PROFILE

  • Reported component ID

    5724J0814

  • Reported release

    850

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-08-03

  • Closed date

    2012-08-03

  • Last modified date

    2012-08-03

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

    PM59544

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

Fix information

  • Fixed component name

    LIBERTY PROFILE

  • Fixed component ID

    5724J0814

Applicable component levels

  • R850 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":"850","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
29 October 2021