Yeah first your right I missed the IsNull all together, but yeah you don't
need to call it twice.

Ok, I see what you are trying to do. But I stand by the fact you don't need
to read the thing in again. For example

domain = entityNew("domain");
domain.setName(curDomain)
email = entityNew("email")
email.setDomain(domain);
email.setUser(curUser);
domain.save();

If the relationship of your persistent components are setup correctly, this
will save the domain and the email as they are constrained by the FK. This
would eliminate you reloading the both entities as they both will have the
correct values associated with them.

Does this make more sense to you.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329204
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to