Через редактор сущности добавил атрибут с типом ASSOCIATION к сущности AddStoreEntity.
Редактор предложил создать persistence атрибут для этого. В итоге получилось:
…
import com.haulmont.chile.core.annotations.MetaProperty;
import com.haulmont.chile.core.annotations.NamePattern;
import com.haulmont.cuba.core.entity.BaseUuidEntity;
import com.haulmont.cuba.core.entity.annotation.SystemLevel;
import javax.persistence.*;
…
@SystemLevel
@Column(name = “TEST_ATTR_ID”)
protected Integer testAttrId;
@Transient
@MetaProperty(related = "testAttrId")
protected AddStoreEntity testAttr;
public AddStoreEntity getTestAttr() {
return testAttr;
}
public void setTestAttr(AddStoreEntity testAttr) {
this.testAttr = testAttr;
}
public Integer getTestAttrId() {
return testAttrId;
}
public void setTestAttrId(Integer testAttrId) {
this.testAttrId = testAttrId;
}
В таблице добавилась колонка
TEST_ATTR_ID integer
Если не указывать создание persistence атрибута, то он не создаст колонку в БД и не создаст testAttrId атрибут.