package Ġru . touch in . db . models Ċ Ċ import Ġorg . jetbrains . ex posed . dao . Entity Ċ import Ġorg . jetbrains . ex posed . dao . Entity Class Ċ import Ġorg . jetbrains . ex posed . dao . Entity ID Ċ import Ġorg . jetbrains . ex posed . dao . Id Table Ċ import Ġru . touch in . extensions . getId Ċ Ċ object ĠWiFi Rout ers Ġ: ĠId Table < String >() Ġ{ ĊĠĠĠ Ġoverride Ġval Ġid Ġ= Ġvarchar (" wifi _ mac ", Ġ 5 0 ). entityId () ĊĠĠĠ Ġval Ġposition Id Ġ= Ġreference (" wifi _ position ", ĠOffice Positions ) Ċ } Ċ Ċ class ĠWiFi Router Dao ( id : ĠEntity ID < String >) Ġ: ĠEntity < String >( id ) Ġ{ ĊĊĠĠĠ Ġcompanion Ġobject Ġ: ĠEntity Class < String , ĠWiFi Router Dao >( WiFi Rout ers , ĠWiFi Router Dao :: class . java ) ĊĊĠĠĠ Ġvar Ġposition Ġby ĠOffice Position Dao Ġreferenced On ĠWiFi Rout ers . position Id ĊĊĠĠĠ Ġfun Ġto Model () Ġ= ĠWiFi Router ( getId (), Ġposition . to Model ()) Ċ Ċ } Ċ Ċ data Ġclass ĠWiFi Router ( ĊĠĠĠ Ġval Ġmac Address : ĠString , ĊĠĠĠ Ġval Ġposition : ĠOffice Position Ċ ) ĊĊ