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

I have a big project using Realm and I am porting this and future projects to ObjectBox. #1200

Open
LeonardDaVinci opened this issue Dec 27, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@LeonardDaVinci
Copy link

Until now, everything is working ok. I have only ONE big problem, I am trying for many days any possible solution,
but I cannot solve it.

This was using Realm
private RealmList listItemCartOl;

public OderHistoryOl() {
}

public OderHistoryOl(String status,String orderPrice, String name, String phone, String paymentMethod, String time, String address, String id, String type, String tableId, String seats, RealmList<ItemCartOl> listItemCartOl) {
    this.status = status;
    this.name = name;
    this.phone = phone;
    this.paymentMethod = paymentMethod;
    this.time = time;
    this.address = address;
    this.id = id;
    this.type = type;
    this.tableId = tableId;
    this.seats = seats;
    this.listItemCartOl = listItemCartOl;
    this.orderPrice = orderPrice;
}

This I try with Objectbox
private List listItemCartOl;

public OderHistoryOl() {
}

public OderHistoryOl(String status, String orderPrice, String name, String phone, String paymentMethod, String time, String address, String id, String type, String tableId, String seats, ArrayList<ItemCartOl> lstItemCartOl) {
    this.status = status;
    this.name = name;
    this.phone = phone;
    this.paymentMethod = paymentMethod;
    this.time = time;
    this.address = address;
    this.id = id;
    this.type = type;
    this.tableId = tableId;
    this.seats = seats;
    this.orderPrice = orderPrice;
    this.listItemCartOl = new ArrayList<ItemCartOl>(lstItemCartOl);
}

The problem is that listItemCartOl ha size = 0 when I try to load OderHistoryOl !

@LeonardDaVinci LeonardDaVinci added the bug Something isn't working label Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant