I've finally found the problem, I didn't take in account that the Order ->
OrderLine relationship was bidirectional. Here is the ejb-jar.xml that works,
I've just added the
| order
|
It looks like that
| OrderBean - OrderLineBean
|
|
Hi, I've got a bunch of CMPs (running on JBoss 3.2.5) representing an order
with orderLine. Here are the links:
Order -1*-> OrderLine -11-> Item
|
V
Customer
My problem comes when I want to create an order. With existing Customer and
Items, I want to create (in one go) an Order with
Hi,
I've got existing POJO/DAO classes and I'm converting them into CMP Beans.
Works fine. I've reached the case where I have a class Customer with an
attribute Address (another class).
public final class Customer extends PersistentObject {
private String _id;
private String _firstname
Thanks, I've put all the entities in only one jar with only one deployment descriptor
and it's working fine.
Is the constraint "both beans have to be defined in the same dd if you have a cmr
relationship between them" defined in the spec (I haven't found anything) or is this a
JBoss limitation
Hi,
Based on the PetStore I've got the following CMP EntityBeans
Order & OrderItem -> both packaged in order-ejb.jar
Category & Product & Item -> packaged in catalog-ejb.jar
And OrderItem has a link to Item (both CMPs are in a different jar).
Both jars are put into a .ear file and when I deploy