Storing "complex" objects

3 views
Skip to first unread message

David Baum

unread,
May 30, 2010, 3:33:16 PM5/30/10
to jiql
Hello jiql world!
I'm trying to persist objects to the GAE datastore.
I'm trying on jiql, as it has no configuration/installation - so I can
concentrate on the gist of things.

To the point:
I am trying to persist a "complex" object. That is, I am trying to
persist an object containing non-trivial data members.
Like so:

Public class MyContainer {
int a;
String str;
ContainedObj obj;

public MyContainer(int i, String s, ContainedObj o) {
...
}
...
}// MyContainer

Public class ContainedObj {
int b;
String t;
Date d;
...
}// ContainedObj

The only working jiql code example I have is the GuestBook.
This example illustrate well how to persist objects having "Natural"
paralles in Java (having ints, longs, Dates, Strings, etc' as their
data members).
However, I did not understand how to persist "Non-trivial" objects -
like the one above, having a "SomeUnfamiliarClass" type data-member
field.

I would like to know how to do so.
I would also like to have pointers to other pieces of code using jiql,
other than the GuestBook.
This will probably do the trick for me.

In any case, thums-up fo the initative, I'am used to SQL.
David

Gabriel Wong

unread,
Jun 1, 2010, 10:35:04 AM6/1/10
to jiql
Hi David,
How would you normally persist an object using a regular RDBMS like
MySQL?

David Baum

unread,
Jun 6, 2010, 6:13:48 AM6/6/10
to jiql
Ahhmm, to be honest so far I've *stored data* rather than *persisted
objects*.
From what I see, as it is, I'll have to learn the inner-workings of
the GAE Datastore, either.
So the learning curve stays pretty close *for me*. I've decided (and
have) to study the datastore own mechanizm.
Thanks for the reply :)
David
Reply all
Reply to author
Forward
0 new messages