In http://wiki.openbluedragon.org/wiki/index.php/GoogleAppEngine:Datastore
I read that we can save an object with its variables to the GAE
database.
Can those variables be other objects?

In other words, is it possible to do the following?
<cfscript>
addr = createObject( "component", "Address" );
addr.setStreet("Coolsingel 100");
addr.setZipcode("3000AA");
addr.setCity("Rotterdam");
addr.setCountry("NL");
emp = createObject( "component", "Employee" );
emp.setFirstName( "John" );
emp.setLastName( "Smith" );
emp.setAge( 24 );
emp.setAddress = addr;
</cfscript>
<cfset key = googleWrite(emp)>

And how about one-to-many relations? Could I have a
variables.arrayOfPhoneNumbers in the Employee object? Or could I use
IBO's?

Rainer (@rainerschreiber)

--~--~---------~--~----~------------~-------~--~----~
Open BlueDragon Public Mailing List
 http://groups.google.com/group/openbd?hl=en
 official site @ http://www.openbluedragon.org/

!! save a network - trim replies before posting !!
-~----------~----~----~----~------~----~------~--~---

Reply via email to