Thanks Chris,

I actually have it all working and connected etc (ORM states it is using
Transfer). You hopefully, kind of, answered my upcoming Q of
creating/updating/deleting content via Transfer directly - and when I mean
directly, I mean not via Scaffolds.

Where the Transfer docs note to use getTransfer and .new() etc should these
be replaced with generic functions and not Transfer directly?

Once the adaptor has loaded that is it?

I am trying to see where you use MG syntax over Transfer for get, set and
save messages etc.





"This e-mail is from Reed Exhibitions (Gateway House, 28 The Quadrant,
Richmond, Surrey, TW9 1DN, United Kingdom), a division of Reed Business,
Registered in England, Number 678540.  It contains information which is
confidential and may also be privileged.  It is for the exclusive use of the
intended recipient(s).  If you are not the intended recipient(s) please note
that any form of distribution, copying or use of this communication or the
information in it is strictly prohibited and may be unlawful.  If you have
received this communication in error please return it to the sender or call
our switchboard on +44 (0) 20 89107910.  The opinions expressed within this
communication are not necessarily those expressed by Reed Exhibitions." 
Visit our website at http://www.reedexpo.com

-----Original Message-----
From: Peterson, Chris
To: CF-Talk
Sent: Mon May 14 18:00:46 2007
Subject: RE: Transfer and Model-Glue

Sorry, I should have answered some basic's here first ;)

To get MGU to use transfer, just un-comment the section for Transfer in
your /config/ColdSprint.xml file, and make sure they point to proper
locations for your Transfer.xml file and config files, ie:

        <bean id="transferConfiguration"
class="transfer.com.config.Configuration">
                <constructor-arg
name="datasourcePath"><value>/config/transfer/Datasource.xml</value></co
nstructor-arg>
                <constructor-arg
name="configPath"><value>/config/transfer/Transfer.xml</value></construc
tor-arg>
                <constructor-arg
name="definitionPath"><value>/model/data/transfer</value></constructor-a
rg>
        </bean>
                
        <bean id="ormAdapter"
class="ModelGlue.unity.orm.transfer.TransferAdapter">
                <constructor-arg name="framework"><ref bean="ModelGlue"
/></constructor-arg>
        </bean>
        
        <bean id="ormService" class="transfer.TransferFactory">
                 <constructor-arg name="configuration"><ref
bean="transferConfiguration" /></constructor-arg>
        </bean> 


At that point, you will use some of the MGU generic read functions,
documented in the download for MGU at
\How_To_S\How_To_Use_Generic_Database_Messages

Remember (and this tripped me up at first), if you have a collection
with an object inside it (which I have in my transfer files), you invoke
it with a dot notation.  So, a collection called user with an object
called user would be:

<message name="modelglue.GenericRead">
        <argument name="object" value="user.user" />
</message>

And that's pretty much it!  =)

Chris



-----Original Message-----
From: Robertson-Ravo, Neil (RX)
[mailto:[EMAIL PROTECTED] 
Sent: Monday, May 14, 2007 12:45 PM
To: CF-Talk
Subject: Transfer and Model-Glue

Hi all,

For those using MGU, is anyone utilising Transfer with it?  I have a
question related to the latest code which uses the Transfer ORM adaptor.

Cheers

N







~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ 

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:278074
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to