I have some question about CMR. If Order and OrderLineItem has 1 to many bi-direction relationship. Do I need to declare CMR getter and setter methods in both Local Object?
In page 284 of "Teach yourself EJB in 21 days",it declared getOrder and setOrder in OrderLineItemLocal class. But it did not declare CMR getter and setter methods (like getLineItems() and and setLineItems(Collection ..) in OrderLocal class? It only declared them in OrderEJB.
Do I need to declare CMR getter and setter methods in both Local Object? Yes, you need to as explained in section 10.3.13 of the EJB 2.0 specification. That's what the book wanted to teach you on the 22nd day [ December 10, 2004: Message edited by: Valentin Crettaz ]
My Linked In
it's a teeny, tiny, wafer thin ad:
Devious Experiments for a Truly Passive Greenhouse!