You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a DTO entity with an attribute which is not a MetaProperty:
@JmixEntity(name = "me_MyDtoEntity", annotatedPropertiesOnly = true)
public class MyDtoEntity {
@JmixGeneratedValue
@JmixProperty(mandatory = true)
@JmixId
private UUID id;
@InstanceName
@JmixProperty
private String name;
private SomeClass someClass;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public UUID getId() {
return id;
}
public void setId(UUID id) {
this.id = id;
}
public SomeClass getSomeClass() {
return someClass;
}
public void setSomeClass(SomeClass someClass) {
this.someClass = someClass;
}
}
We have a browser of these DTO entities. Each instance in the browser have the someClass attribute filled. When we open the entity instance editor, the someClass property is erased. This probably happens because DataContext.merge copies only attributes that are metaproperties.
Create a DTO entity with an attribute which is not a MetaProperty:
We have a browser of these DTO entities. Each instance in the browser have the
someClass
attribute filled. When we open the entity instance editor, thesomeClass
property is erased. This probably happens because DataContext.merge copies only attributes that are metaproperties.The sample project: merge-erase-sample.zip
The text was updated successfully, but these errors were encountered: