Why not just store these all in the User entity? Then you don't have to
worry about multiple retrievals and such. If you're concerned about indexes
being created on null values, you could always just use the low-level API
(if you are using Java) and store only the fields you need.

Off topic because this is a style issue, but these are poor names for
classes. It's not a relational database so "table" is inaccurate. Even if
you were building objects to map to an RDBMS for persistence, a single
instance of your object is not a table. It'd be a "FacebookAccount" or a
"TwitterAccount".

On Wed, Mar 31, 2010 at 7:49 AM, BimboJones <[email protected]> wrote:

> Hi,
>
> I have the following setup:
>
> FacebookTable {
> String facebookid;
> String globalid;
> }
>
> TwitterTable {
> String twitterid;
> String globalid;
> }
>
> GlobalUser{
> String generatedKey;
> List<String> socialids;
> List<Informations> infos;
> ..
> }
>
> Suppose i want to create a user through Facebook i get a FacebookTable
> that is connected to a GlobalUser, then i want to add a previous
> Twitter account(with a GlobalUser) to that Facebook+GlobalUser, so i
> have to merge the Informations and update the globalids.
> I can't do that because these arent from the same entitygroup..
> Any suggestions?
>
> the login process is like so:
> -> User authenticates through Facebook -> fetch globalid from
> FacebookTable -> fetch GlobalUser -> return session.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-appengine-java%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>


-- 
Ikai Lan
Developer Programs Engineer, Google App Engine
http://googleappengine.blogspot.com | http://twitter.com/app_engine

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" 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/google-appengine-java?hl=en.

Reply via email to