Skip to content

RealmList<Integer / String / ...> #575

@an-k

Description

@an-k

Dear realm-Team,

I'm really impressed by Realm and I do like the way you're providing support and solutions on github, SO and gGroups! I like working with Realm - however there are three really big drawbacks for me:

  1. No model-instantiation by = new ... - I know you're on it. I can't wait for this! Do we have to wait for the "whole" JSON-Upgrade or will there be an earlier release providing this feature?

  2. No model-passing across threads. That's hindering all the great benefits of EventBus and Android Priority Job Queue. But I read that it will be possible in the further versions and I'm looking forward on this.

  3. The reason for this issue:
    In my model class I'm allowed to have primitive fields as well as object fields of objects that extend RealmObject.
    But I'm not allowed to have a field type like RealmList<Integer> or RealmList<String>.
    However it is possible to work around this by

RealmList<RealmString> names;

and

public class RealmString extends RealmObject {
private String name;
// getter & setter

It works but it's really ugly and should be unnecessary in my opinion.
Is there any improvement planned regarding this?

Thanks again for your great work - I'm glad Realm helps me developing my app!


Related PRs:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions