package Ġh era . database . entities Ċ Ċ import Ġh era . database . types . Snow flake Type Ċ Ċ import Ġjavax . persistence .* Ċ Ċ @ Entity Ċ @ Table ( name Ġ= Ġ" role _ member ") Ċ data Ġclass ĠRole Member ( Ċĉ ĉ @ Id Ċĉ ĉ @ GeneratedValue ( strategy Ġ= ĠGeneration Type . IDENTITY ) Ċĉ ĉ override Ġvar Ġid : ĠLong ? Ġ= Ġnull , ĊĊĉ ĉ var Ġsnow flake : ĠLong ? Ġ= Ġnull , ĊĊĉ ĉ @ ManyToOne Ċĉ ĉ @ JoinColumn ( name Ġ= Ġ" role FK ") Ċĉ ĉ var Ġrole : ĠRole ? Ġ= Ġnull , ĊĊĉ ĉ @ Enumer ated ( Enum Type . STRING ) Ċĉ ĉ @ Column ( name Ġ= Ġ" snow flake Type FK ") Ċĉ ĉ var Ġsnow flake Type : ĠSnow flake Type ? Ġ= Ġnull Ċ ) Ġ: ĠIP ers istence Entity Ġ{ Ċ ĉ constructor ( snow flake : ĠLong , Ġrole : ĠRole , Ġsnow flake Type : ĠSnow flake Type ) Ġ: Ġthis ( null , Ġsnow flake , Ġrole , Ġsnow flake Type ) Ċ } Ċ