Skip to content

Instantly share code, notes, and snippets.

@wizardxz
Created September 3, 2022 02:12
Show Gist options
  • Save wizardxz/8530f0afeafa7d2eed4ec2f00da99133 to your computer and use it in GitHub Desktop.
Save wizardxz/8530f0afeafa7d2eed4ec2f00da99133 to your computer and use it in GitHub Desktop.
namespace com.linkedin.pinterest
import com.linkedin.common.Urn
/**
* Properties of an applied DataElement. For now, just an Urn. In the future we can extend this with other properties, e.g.
* propagation parameters.
*/
record DataElementAssociation {
/**
* Urn of the applied dataElement
*/
@Relationship = {
"name": "DataElementWith",
"entityTypes": [ "dataElement" ]
}
@Searchable = {
"fieldName": "dataElements",
"fieldType": "URN",
"hasValuesFieldName": "hasDataElements",
"addToFilters": true,
"filterNameOverride": "Data Element"
}
urn: DataElementUrn
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment