pluginmodelrelations.model.RelatedDatastream.json Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of FROST-Server.Plugin.ModelRelations Show documentation
Show all versions of FROST-Server.Plugin.ModelRelations Show documentation
The SensorThings API Version 2.0 Relations Data Model.
{
"conformance": [],
"simplePropertyTypes": [],
"entityTypes": [
{
"name": "RelatedDatastream",
"plural": "RelatedDatastreams",
"adminOnly": false,
"table": "related_datastreams",
"orderByDflt": [],
"entityProperties": [
{
"name": "id",
"aliases": [
"@iot.id"
],
"type": "Id",
"handlers": [
{
"@class": "de.fraunhofer.iosb.ilt.frostserver.persistence.pgjooq.utils.fieldmapper.FieldMapperId",
"field": "id"
}
],
"annotations": []
},
{
"name": "externalTarget",
"type": "Edm.String",
"required": false,
"handlers": [
{
"@class": "de.fraunhofer.iosb.ilt.frostserver.persistence.pgjooq.utils.fieldmapper.FieldMapperString",
"field": "external_target"
}
],
"annotations": []
}
],
"navigationProperties": [
{
"name": "Source",
"entitySet": false,
"entityType": "Datastream",
"required": true,
"symmetrical": false,
"priority": 0,
"inverse": {
"name": "TargetRelatedDatastreams",
"entitySet": true,
"required": false,
"priority": 0,
"annotations": []
},
"handlers": [
{
"@class": "de.fraunhofer.iosb.ilt.frostserver.persistence.pgjooq.utils.fieldmapper.FieldMapperOneToMany",
"field": "source_datastream_id",
"otherTable": "datastreams",
"otherField": "id"
}
],
"annotations": []
},
{
"name": "Target",
"entitySet": false,
"entityType": "Datastream",
"required": false,
"symmetrical": false,
"priority": 0,
"inverse": {
"name": "SourceRelatedDatastreams",
"entitySet": true,
"required": false,
"priority": 0,
"annotations": []
},
"handlers": [
{
"@class": "de.fraunhofer.iosb.ilt.frostserver.persistence.pgjooq.utils.fieldmapper.FieldMapperOneToMany",
"field": "target_datastream_id",
"otherTable": "datastreams",
"otherField": "id"
}
],
"annotations": []
},
{
"name": "RelationRole",
"entitySet": false,
"entityType": "RelationRole",
"required": true,
"symmetrical": false,
"priority": 0,
"inverse": {
"name": "RelatedDatastreams",
"entitySet": true,
"required": false,
"priority": 0,
"annotations": []
},
"handlers": [
{
"@class": "de.fraunhofer.iosb.ilt.frostserver.persistence.pgjooq.utils.fieldmapper.FieldMapperOneToMany",
"field": "relation_role_id",
"otherTable": "relation_roles",
"otherField": "id"
}
],
"annotations": []
}
],
"annotations": []
}
]
}