package Ġcom . w itk ups . car sharing . users . application Ċ Ċ import Ġjava . time . Instant Ċ import Ġjavax . persistence .* Ċ import Ġjavax . validation . constraints . Future Ċ Ċ @ Embed d able Ċ @ Table ( name Ġ= Ġ" route _ snapshots ") Ċ data Ġclass ĠRoute Snapshot ( ĊĠ Ġ@ ManyToOne ( optional Ġ= Ġfalse , Ġfetch Ġ= ĠFetch Type . LA ZY , Ġcascade Ġ= Ġ[ Cascade Type . MERGE , ĠCascade Type . PER SIST ]) ĊĠ Ġ@ JoinColumn ( name Ġ= Ġ" location _ id ", Ġnullable Ġ= Ġfalse , ĊĠĠĠ Ġinser table Ġ= Ġfalse , Ġup datable Ġ= Ġfalse , ĊĠĠĠ Ġforeign Key Ġ= ĠForeign Key ( name Ġ= Ġ" FK _ SNAPSHOT _ LOC ")) ĊĠ Ġvar Ġlocation : ĠLocation ? Ġ= Ġnull , ĊĊĠ Ġ@ Column ( nullable Ġ= Ġfalse ) ĊĠ Ġ@ Future ĊĠ Ġvar Ġdate : ĠInstant ? Ġ= Ġnull Ċ Ċ ) Ċ