datanucleus で複合キーを使用してクラスをマップしようとしています。主キーは 2 つの外部キーで構成されており、これらの外部クラスを fetchgroup に含めることができないようです。
注釈の使用:
@PrimaryKey
@Column(name = idElementOne, allowsNull = "false")
private Long idElementOne;
@PrimaryKey
@Column(name = "idElementTwo", allowsNull = "false");
private Long idElementTwo;
作品
@PrimaryKey
@Column(name = idElementOne, allowsNull = "false");
private ElementOne elementOne;
@Column(name = "idElementTwo", allowsNull = "false");
private Long idElementTwo;
作品
しかし
@PrimaryKey
@Column(name = idElementOne, allowsNull = "false")
private ElementOne elementOne;
@PrimaryKey
@Column(name = "idElementTwo", allowsNull = "false");
private Long idElementTwo;
ではない。
どうすればいいですか?