toRegionEntity

fun Region.toRegionEntity(regionsID: Long, polygonID: Long): RegionEntity

Converts the Region object to a RegionEntity, specifying the foreign key relationships.

Return

the RegionEntity object.

Parameters

regionsID

The ID of the associated Cartographic Boundary entity (foreign key). This likely represents the administrative boundary information for the region.

polygonID

The ID of the associated Polygon entity (foreign key). This likely represents the geometric shape of the region.


fun Region.toRegionEntity(id: Long, regionsID: Long, polygonID: Long): RegionEntity

Converts the Region object to a RegionEntity using a specified id for update purposes, and specifying the foreign key relationships.

Return

the RegionEntity object.

Parameters

id

the id used to update the alreary existent entity

regionsID

The ID of the associated Cartographic Boundary entity (foreign key). This likely represents the administrative boundary information for the region.

polygonID

The ID of the associated Polygon entity (foreign key). This likely represents the geometric shape of the region.