Hi,
I have two doubts hitting my mind:
1) What is the best way to populate foreign keys into a bean?
Supposing I have a class Product.
Each product has a Category.
What is the right way:
beanProduct = serviceProduct.getBean();
beanProduct.setName( "It's name" );
beanProduct.setCategory( 1 );
or
beanCategory = serviceCategory.getBean( 1 );
beanProduct = serviceProduct.getBean();
beanProduct.setName( "It's name" );
beanProduct.setCategory( beanCatebory );
or neither?
2) In CF community we use to talk about DAOs and Gateways but it doesn't
seem a widely used pattern.
What is the best usage? Have just one DAO as Row Data Gateway and
Table Data Gateway or use DAO as RDG and Gateways as TDG?
Thanks,
Ronan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CFCDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cfcdev?hl=en
-~----------~----~----~----~------~----~------~--~---