I have one entity bookmark which has reference to another entity masterlegaltext in additional datastore.
When I save bookmark record it gives following error -
IllegalArgumentException: Can’t find setter for property ‘legalTextId’ at class com.company.sheelonline.entity.Bookmark
The entity bookmark was made using studio and no modification. As per documentation " When you commit an entity graph which includes Order
with Customer
, DataManager
saves the instances via corresponding DataStore
implementations, and then saves the identifier of the customer in the order’s customerId
attribute."
This is bookmark entity
public class Bookmark extends StandardEntity {
private static final long serialVersionUID = -6524321071413366323L;@NotNull @Column(name = "TITLE", nullable = false) private String title; @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "USER_ID") private User user; @SystemLevel @Column(name = "LEGAL_TEXT_ID") private UUID legalTextId; @Transient @MetaProperty(related = "legalTextId") private SheellegalMasterLegalText legalText; public User getUser() { return user; } public void setUser(User user) { this.user = user; } public SheellegalMasterLegalText getLegalText() { return legalText; } public void setLegalText(SheellegalMasterLegalText legalText) { this.legalText = legalText; } public UUID getLegalTextId() { return legalTextId; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; }
}
Is it possible to refer and use additional datastore this way?
thanks
Umesh