Skip to content

Commit

Permalink
Default data element pointer type
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelbey authored Nov 29, 2024
1 parent e9b21ac commit f381189
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,21 @@

package org.finos.legend.engine.protocol.pure.v1.model.data;

import com.fasterxml.jackson.annotation.JsonSetter;
import org.finos.legend.engine.protocol.pure.v1.model.context.PackageableElementPointer;
import org.finos.legend.engine.protocol.pure.v1.model.context.PackageableElementType;

public class DataElementReference extends EmbeddedData
{
public PackageableElementPointer dataElement;

@JsonSetter("dataElement")
public void setDataElement(PackageableElementPointer dataElement)
{
this.dataElement = dataElement;
if (this.dataElement.type == null)
{
this.dataElement.type = PackageableElementType.DATA;
}
}
}

0 comments on commit f381189

Please sign in to comment.