Marlon,

I just replied over on the CS forums, but I'll repost it here as well.

We typically don't use ColdSpring to create "value objects", which is
what your "user__bean" is in this context. It all depends on how you
build your apps... I typically use ColdSpring to configure and wire
together my services/daos/gateways/utils/etc, but the actual creation of
my value objects is done either by some external entity (like the
controller layer) or in the DAO layer. Even though we support
"prototypes" (meaning <bean/>'s with singleton="false"), it doesn't mean
we use them very often. In this particular case, making your DAO obtain
new "user__bean's" from ColdSpring would tie your DAO (part of your
Model) to ColdSpring (just a framework), which is not a great thing to
do. Your Model should be completely unaware of the existence of
ColdSpring.

Hope that helps...

-Dave


>>> [EMAIL PROTECTED] 11/14/05 11:34 AM >>>
In my dao's, typically I return a "bean" object instead of a query. 
I'm trying to figure out how to do it using Coldspring and can't seem
to figure it out.

How would I replace something like this in my DAO:

<cfset myBean =
createobject("component","com.stuff.user__bean").init()/>


--
Marlon

"And I have no religion and I don't know what's what
And I don't know the limit, the limit of what we got"


----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to
[email protected] with the words 'unsubscribe cfcdev' as the subject of
the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting
(www.cfxhosting.com).

An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]




-----------------------------------------
CONFIDENTIALITY NOTICE: This email and any attachments may contain
confidential information that is protected by law and is for the sole
use of the individuals or entities to which it is addressed. If you are
not the intended recipient, please notify the sender by replying to
this email and destroying all copies of the communication and
attachments. Further use, disclosure, copying, distribution of, or
reliance upon the contents of this email and attachments is strictly
prohibited. To contact Albany Medical Center, or for a copy of our
privacy practices, please visit us on the Internet at www.amc.edu.



----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to 
[email protected] with the words 'unsubscribe cfcdev' as the subject of the 
email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting 
(www.cfxhosting.com).

An archive of the CFCDev list is available at 
www.mail-archive.com/[email protected]


Reply via email to