Hi,
is there any way to use a CompositeUserType as a Key for a Map?
How can this be mapped using annotations?
Ex:
Code:
@Entity
public class BBHWRelease extends Model {
}
@Entity
public class ChannelType extends Model {
}
public class ChannelTypeBBHWReleaseKey {
private ChannelType chType;
private BBHWRelease bbHwRelease;
}
and I have a map like this:
Code:
private Map<ChannelTypeBBHWReleaseKey, Priority> bbHwPriorities
where for ChannelTypeBBHWReleaseKey I have a CompositeUserType and for Priority I have a UserType.
Best regards,
cdan.[/code]