@Entity
public class Order {
...
@JoinColumn(name = "CLIENT_ID")
@ManyToOne(fetch = FetchType.LAZY)
private Client client;
...
Jmix fetch CLIENT_ID when fetching Order with any predefined fetch plan.
But order.getClient().getId() fetch entire Client entity.
How can I get only client id without extra database query ?
Jmix imposes the restriction on mapping annotations: Attribute annotations must be placed only on fields (AccessType.FIELD
).
So I can not use JPA proxy object.