public class PayReceiptModelRealm extends RealmObject {
    private String AccountNo;
    private String PaymentGatewayNo;
    private String Token;
    public RealmList<TransactionModel> TransactionList = new RealmList<>();//don't forget to initialize this therefor it won't work
}

public class TransactionModel extends RealmObject {
    @PrimaryKey
    private int ID;
}


Advertisements