私は以下の問題があります。 最も重要な情報を最初に残すためにDomainObjectの列を並べ替える必要があります。 私は@MemberOrder
Annotaionを使用しましたが、これは機能しません。私はいいえlayout.xml
なので、オプションは上書きされません。ここでApache ISIS:DomainObjectでの列の順序 - @MemberOrderが機能しない
は私のドメインオブジェクトのいくつかのサンプルコードです:
@PersistenceCapable(identityType = IdentityType.DATASTORE, table = "jobs")
@Extension(vendorName = "datanucleus", key = "datastore", value = "store-email")
@Inheritance(strategy = InheritanceStrategy.NEW_TABLE)
@DomainObjectLayout(cssClassFa = "envelope")
public class EmailSend implements Comparable {
@PrimaryKey(column = "email_id")
@Persistent(primaryKey = "true", valueStrategy = IdGeneratorStrategy.IDENTITY, column = "email_id")
@Property(editing=Editing.DISABLED)
private int id;
@Property(editing=Editing.DISABLED)
@PropertyLayout(multiLine = 5)
@Column(name = "text", length = 65535)
@Title(sequence = "1")
private String text;
...
@MemberOrder(sequence = "1")
public int getId() {
return id;
}
@MemberOrder(sequence = "2")
public String getText() {
return text;
}
...
}
あり、列の順序はランダムではないので、何の@MemberOrder
作品。私のコードで間違いはどこですか?