0 Replies Latest reply on Mar 25, 2002 10:15 PM by Dave

    Custom Finder - Cache

    Dave Newbie

      I am using 2.4.4 on Linux.

      I am having a problem with a custom finder keeping stale data around. If I do a findByPrimaryKey it loads the correct data from the db.

      First, I update data through a CMP Entity Bean.

      Next, I try to retrieve the data with a custom finder and receive stale data.

      I have made sure my primary key's hash code and equals work correctly, I have made sure the update and finders participate in a transaction.

      Commit option "B" fixes the problem, however, this should work with Commit option "A". Also, if I wait long enough and execute the custom finder I receive the correct data.

      My primary key is composed of two int(s) and a string.