Menu

How to force flush of changed data to MDB?

Help
William
2015-12-13
2015-12-13
  • William

    William - 2015-12-13

    I am using Ucanaccess-3.0.2 with JPA (EclipseLink). For most use cases it works just fine.

    But I have one scenario in which I
    - start a transaction,
    - update a row,
    - commmit the transaction,
    - start a new transaction
    - update the same row again
    - commmit the 2nd transaction.

    At that point the data from the 2nd transaction is visible upon querying (in a new transaction), but if I close EntityManagerFactory and open the MDB the 2nd transaction hasn't been persisted.

    Is this possibly because the change has been made to the intermediary HSQL DB and has not yet been written to the MDB?

    If so, how do I ensure that the transaction is pushed to the MDB?

     
  • Marco Amadei

    Marco Amadei - 2015-12-13

    Hi William, pay attention, you have to close/reopen ms access to see data persisted. If a commit has been called on ucanaccess, this always flushes and persists data on the access database.

     
  • Gord Thompson

    Gord Thompson - 2015-12-13

    This issue is also being addressed on Stack Overflow here:

    http://stackoverflow.com/q/34250537/2144390

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.