I am a newbie at JPA and was not able to find a good google solution to this. I am wanting to set up a JPA annotation for a LinkedHashMap of strings. Here is the twist, I have a abstract class that I am mapping as a mappedSuperClass. So that every implementation of this superclass has the LinkedHashMap of strings. Here is my example:
@MappedSuperclass
public abstract class AbstractCustomerType implements Serializable
{
@ElementCollection //is this right?
protected LinkedHashMap<String, String> customerData;
}
So what can I expect in my database? Each implementation of AbstractCustomerType having its own join table of customerData? In that case if I have 10 CustomerTypes I would have 10 customerData tables? How would I annotate this so that I only get one customerData table that is shared between all customerTypes?