- Posted by: Gavin Lasnitzki
- Posted on: May 17 2002 19:44 EDT
I was wondering if anyone knows how to use BMP and CMP at the same time. I have a bean that uses BMP to store its fields to a database. However, I would lik to use the EJB 2 CMR features to link this bean to some other bean. Is there a way to get the best of both worlds.
In an ideal world I would imagine that it uses my BMP DAO methods to store its state and the CMR methods to store related beans.
One idea is to use the Pre methods.
Any other ideas would be greatly appreciated.
Gavin could you please tell me something about the pre method. I am aware of the dual entity bean pattern.