I want to set the primary key constraint name as MyEmbeddable_PK
, which is dynamically generated as PK__MyEmb__ED24807C4DAE15BD
from hibernate.
How to override that created primary key constraint so that MyEmbeddable_PK
could be generated from hibernate instead of the dynamically created one ?
My entity is as below
@Entity
public class MyBaseEntity {
@EmbeddedId
private MyEmbeddable id;
// other...
}