キー値がエンティティで値が整数であるマップに対してEclipseLinkの@BasicMapアノテーションを使用するにはどうすればよいですか?
@Entity
class A {
// This doesn't work, as the key is an entity
@BasicMap
private Map<B, Integer> myMap = new HashMap<B, Integer>();
}
@Entity
class B {
...
}
キー値がエンティティで値が整数であるマップに対してEclipseLinkの@BasicMapアノテーションを使用するにはどうすればよいですか?
@Entity
class A {
// This doesn't work, as the key is an entity
@BasicMap
private Map<B, Integer> myMap = new HashMap<B, Integer>();
}
@Entity
class B {
...
}