Originally posted by Thomas Paul:
Yes. EJB 2.0 supports the creation of entity relationships using CMP.
I beg to differ here. OR mapping is not same as specifying Entity relationships. For example, you have an Order Object which has multiple OrderLine objects. Now, the relationship between the two objects can be handled by the EJB container. But you still need to have relational database tables structured that correspond directly to the objects.
On the other hand, if you already have a legacy system which (say) has one table that includes columns for Order as well as OrderLine objects, I'm not sure the EJB container will be able to handle it. The situation could be much more complex.
So, the point I am trying to make here is OR mapping and Entity relationships are two different things.
Please correct me if I am wrong.