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?