package Ġuk . gov . just ice . digital . as sess ments . jpa . entities . ref data Ċ Ċ import Ġuk . gov . just ice . digital . as sess ments . jpa . entities . Assessment Schema Code Ċ import Ġjava . io . Serializable Ċ import Ġjava . util . UUID Ċ import Ġjavax . persistence . Column Ċ import Ġjavax . persistence . Entity Ċ import Ġjavax . persistence . Enum Type Ċ import Ġjavax . persistence . Enumer ated Ċ import Ġjavax . persistence . GeneratedValue Ċ import Ġjavax . persistence . Generation Type Ċ import Ġjavax . persistence . Id Ċ import Ġjavax . persistence . JoinColumn Ċ import Ġjavax . persistence . ManyToOne Ċ import Ġjavax . persistence . Table Ċ Ċ @ Entity Ċ @ Table ( name Ġ= Ġ" external _ source _ question _ mapping ", Ġschema Ġ= Ġ" h mp ps assessment ss chemas ") Ċ class ĠExternal Source Question Mapping Entity ( ĊĊĠ Ġ@ Id ĊĠ Ġ@ Column ( name Ġ= Ġ" external _ source _ question _ mapping _ id ") ĊĠ Ġ@ GeneratedValue ( strategy Ġ= ĠGeneration Type . IDENTITY ) ĊĠ Ġval Ġexternal Source Question Mapping Id : ĠLong , ĊĊĠ Ġ@ Column ( name Ġ= Ġ" external _ source _ question _ mapping _ uuid ") ĊĠ Ġval Ġexternal Source Question Mapping Uuid : ĠUUID Ġ= ĠUUID . randomUUID (), ĊĊĠ Ġ@ Column ( name Ġ= Ġ" assessment _ schema _ code ") ĊĠ Ġ@ Enumer ated ( Enum Type . STRING ) ĊĠ Ġval Ġassessment Schema Code : ĠAssessment Schema Code , ĊĊĠ Ġ@ Column ( name Ġ= Ġ" external _ source ") ĊĠ Ġval Ġexternal Source : ĠString , ĊĊĠ Ġ@ Column ( name Ġ= Ġ" json _ path _ field ") ĊĠ Ġval Ġjson Path Field : ĠString , ĊĊĠ Ġ@ Column ( name Ġ= Ġ" field _ type ") ĊĠ Ġval ĠfieldType : ĠString , ĊĊĠ Ġ@ Column ( name Ġ= Ġ" external _ source _ endpoint ") ĊĠ Ġval Ġexternal Source Endpoint : ĠString , ĊĊĠ Ġ@ Column ( name Ġ= Ġ" mapped _ value ") ĊĠ Ġval Ġmapped Value : ĠString ? Ġ= Ġnull , ĊĊĠ Ġ@ Column ( name Ġ= Ġ" if _ empty ") ĊĠ Ġval Ġif Empty : ĠBoolean Ġ= Ġfalse , ĊĊĠ Ġ@ ManyToOne ĊĠ Ġ@ JoinColumn ( name Ġ= Ġ" question _ code ", Ġreferenced ColumnName Ġ= Ġ" question _ code ") ĊĠ Ġval Ġquestion Schema : ĠQuestion Schema Entity , Ċ ) Ġ: ĠSerializable Ċ