Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-users] How to annotate a HashMap which uses a selfmade type as key?

Hello everyone,

How can i annotate a Java HashMap, which uses a selfmade type as key?

I tried several things i've found on the internet, but EclipseLink doesn't like them or they appear to be hopelessly outdated.

It's a bit like this:

private HashMap<TimeSpan, String> normalWorkingTimes;

Please note that the class TimeSpan is annotated as @Embeddable, so it doesn't have a table on it's own.

Thanks in advance,

Rick

Back to the top