| Ka Wu, documentation for @MapKey says: "The MapKey annotation is used to specify the map key for associations of type java.util.Map when the map key is itself the primary key or a persistent field or property of the entity that is the value of the map. " PhoneNumber is an embeddable, not an entity. You should be using @MapKeyColumn instead. |