Dear JBoss Users, I have a question about usage of CMR Value objects. I apologize in advance if this "newbie" question does not suit this list, and ask for any referrals to other forums where these topics can be discussed:
I have a 1:1 relationship between a PersonBean and a CreditCard bean. my PersonBeanLocal exposes a setCreditCard ( CreditCardLocal param ) and my PersonValue exposes a setCreditCardValue ( CreditCardValue param ) when I first create my PersonBean, the CreditCard is null. When I want to set the credit card, which is the preferred approach ? a) - get the PersonValue from the PersonBean - call PersonValue.setCreditCardValue ( ccValueObject ) - call PersonBean.setPersonValue ( personValueWithCCValueObjectSet ) b) - create a new CreditCardLocal ( withCreditCardValueObject ) - call PersonBean.setCreditCard ( creditCardLocalObj ) Are the two approaches interchangeable ? If I choose a) and then call PersonBean.getCreditCard() , will the data come out ? If I choose b) and then call PersonValue.getCreditCardValue, will the value object be set ? your advice greatly appreciated. Nathaniel ------------------------------------------------------- This SF.net email is sponsored by: Does your code think in ink? You could win a Tablet PC. Get a free Tablet PC hat just for playing. What are you waiting for? http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
