Database column names mismatch with CDT field names

I have a CDT with field names having underscore in it (Eg. "first_name"). But when I am trying to create a table, the underscores are not coming in column names of database table. I need exactly the same names(with underscore). Is there any possible way to get it?

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    are you using xsd to create your cdt?

    If not, use a xsd and configure your table column name there. An example would be :

    <xsd:element name="first_name" nillable="true" type="xsd:string">
    <xsd:annotation>
    <xsd:appinfo source="appian.jpa">@Column(length=255, name="first_name")</xsd:appinfo>
    </xsd:annotation>
    </xsd:element>

    The highlighted part indicates the table column name.

Reply
  • 0
    Certified Lead Developer

    are you using xsd to create your cdt?

    If not, use a xsd and configure your table column name there. An example would be :

    <xsd:element name="first_name" nillable="true" type="xsd:string">
    <xsd:annotation>
    <xsd:appinfo source="appian.jpa">@Column(length=255, name="first_name")</xsd:appinfo>
    </xsd:annotation>
    </xsd:element>

    The highlighted part indicates the table column name.

Children
No Data