0 Replies Latest reply on Oct 1, 2001 1:39 PM by eike

    Entity/Database synchronisation

    eike

      Hi!

      The situation (BMP):
      Entity bean A represents database records in table A.
      Entity bean B represents database records in table B.
      Both entity beans A and B use DAO classes for database access.
      If an entity A bean instance is removed some entity B bean instances need to be removed as well.

      The question:
      Instead of calling the remove methods of the entity B instances that need to be removed, I plan to let entity A's DAO class delete the corresponding B records directly from the database. Will jBoss notice this and synchronise its entity cache with the database?

      Thanks,
      Eike