[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.rt.eclipselink] How to use @BasicMap for a HashMap whose key values are entities
|
- From: kimppal@xxxxxxxxx ( Kim L)
- Date: Sun, 19 Apr 2009 05:40:50 +0000 (UTC)
- Newsgroups: eclipse.rt.eclipselink
- Organization: Eclipse
- User-agent: NewsPortal/0.36 (http://florian-amrhein.de/newsportal)
Hi
I'm new to EclipseLink and I was wondering how should I use EclipseLink's
@BasicMap annotation for a map whose key value is an entity and the value
is
an Integer?
Example:
@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 {
...
}