Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example of UserWithTweets entity with custom Put/Get/Delete resolvers #520

Merged
merged 2 commits into from Sep 15, 2015

Conversation

artem-zinnatullin
Copy link
Member

cc @Rainer-Lang, here is the example of an entity with references to another entities (I used existent User and Tweet just to minimize new code and make sample app small and understandable, hope you will be able to map it onto your Person with Cars relationship!)

@nikitin-da PTAL :)

nikitin-da added a commit that referenced this pull request Sep 15, 2015
Example of UserWithTweets entity with custom Put/Get/Delete resolvers
@nikitin-da nikitin-da merged commit fa709ab into master Sep 15, 2015
@nikitin-da nikitin-da deleted the user-with-tweets-example branch September 15, 2015 22:23
@nikitin-da
Copy link
Collaborator

Nice example and good start for tests =)

@artem-zinnatullin
Copy link
Member Author

Oh shi 👯

I forgot to add "not for merge yet" :)

@Rainer-Lang please feel free to review and comment this PR!

@nikitin-da sorry, my bad :)

@Rainer-Lang
Copy link

I don't think that this will work for me.
I don't use such a container class UserWithTweets. I use only User and inside of the the user a list with Tweets.

@artem-zinnatullin
Copy link
Member Author

Yep, in your case you can just eliminate User class and read it from the
cursor directly!

ср, 16 Сен 2015, 2:18, Rainer-Lang notifications@github.com:

I don't think that this will work for me.
I don't use such a container class UserWithTweets. I use only User and
inside of the the user a list with Tweets.


Reply to this email directly or view it on GitHub
#520 (comment).

@artem_zin

@artem-zinnatullin
Copy link
Member Author

The main idea was to show you how to retrieve Tweets of the User (Cars of
the Person) :)

I'll make another PR tomorrow with Persons and Cars but we won't merge it,
just for discussion :)

ср, 16 Сен 2015, 2:27, Artem Zinnatullin artem.zinnatullin@gmail.com:

Yep, in your case you can just eliminate User class and read it from the
cursor directly!

ср, 16 Сен 2015, 2:18, Rainer-Lang notifications@github.com:

I don't think that this will work for me.
I don't use such a container class UserWithTweets. I use only User and
inside of the the user a list with Tweets.


Reply to this email directly or view it on GitHub
#520 (comment)
.

@artem_zin

@artem_zin

@Rainer-Lang
Copy link

Artem, I have some difficulties with the three resolvers. Could you please help me?

@Rainer-Lang
Copy link

Ah ok fine. :-)
Thanks a lot, Artem.

@artem-zinnatullin
Copy link
Member Author

Sure, please ask your questions, I'll answer them after sleep :)

@Rainer-Lang
Copy link

Please make your pr with person and cars so we can discuss - without merge. ;-)
Good night.

//
// At the moment, you can save this instance in performGet() and then null it at the end
@NonNull
private final ThreadLocal<StorIOSQLite> storIOSQLiteFromPerformGet = new ThreadLocal<StorIOSQLite>();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any plans when to release v2?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As soon as we will complete all issues with milestone v2.0.0 :) No concrete dates, but probably near to the end of this year, I hope :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants