Hi there,
I met one exception during the import process, which is Cannot get unfetched attribute [acceptanceCriteriaDesign] from detached object B
Basically, I have one class A, which has the ManyToOne relationship with B. In A, I have one transient property called bAcceptanceCriteriaDesign and the code of it is like this:
@Lookup(type = LookupType.DROPDOWN, actions = "lookup")
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "B_ID")
private B b;
@Transient
@MetaProperty
private String bAcceptanceCriteria;
public String getBAcceptanceCriteria() {
return b == null ? "" : b.getAcceptanceCriteriaDesign();
}
However, when I try to import A, even though I didn’t provide mapping for the bAcceptanceCriteriaDesign, it seems the getter of bAcceptanceCriteriaDesign is executed and it causes an exception.
Could you help me?