Skip to content

The associated query to multiple tables #300

@JinJieGu

Description

@JinJieGu
// Customer.java
@Entity
public class Customer {
 
    @Id public long id;
    public boolean male; 
    @Backlink
    public ToMany<Order> orders;
 
}
 
// Order.java
@Entity
public class Order {
 
    @Id public long id;
    public boolean isCash;
    public ToOne<Customer> customer;
 
}

If the tables like this, I want use the DataSubscription to observer the data which Customer is male and Order isCash? What should I do ?Thank you very much !

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions