Skip to content

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

Open
@LeonardDaVinci

Description

@LeonardDaVinci

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 !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions