I am having difficulty using the @SecondaryTable annotation. My goal

I am having difficulty using the @SecondaryTable annotation.

My goal was to change from saying:
pv!software.softwareCategory.name
to:
pv!software.softwareCategoryName

The error I’m currently getting when I try to verify my data store is: “The data source schema does not match the type mappings: Missing table: sss_sw_category”

I modified an existing CDT (that verified just fine) from:
<xsd:complexType name="SSS_Software">
<xsd:annotation>
<xsd:appinfo source="appian.jpa">
@Table(name="SSS_SOFTWARE")
</xsd:appinfo>
</xsd:annotation>
...
<xsd:element name="softwareCategory" type="sss:SSS_SoftwareCategory">
<xsd:annotation>
<xsd:appinfo source="appian.jpa">
@ManyToOne(cascade=CascadeType.REFRESH)
@JoinColumn(name="CATEGORY_ID")
</xsd:appinfo>...

OriginalPostID-79812

OriginalPostID-79812

  Discussion posts and replies are publicly visible

Parents
  • SSS_SoftwareCategory is my CDT name while SSS_SW_CATEGORY is the corresponding Oracle table name. I have only seen CDT names used in XSD element type attribute values, never in JPA annotations. It would be helpful to me to have a complete example to look at. Last week's Data Design for Success Webinar included some incomplete sample syntax as does the "Create Custom Data Types" Appian 7.2 documentation page.
Reply
  • SSS_SoftwareCategory is my CDT name while SSS_SW_CATEGORY is the corresponding Oracle table name. I have only seen CDT names used in XSD element type attribute values, never in JPA annotations. It would be helpful to me to have a complete example to look at. Last week's Data Design for Success Webinar included some incomplete sample syntax as does the "Create Custom Data Types" Appian 7.2 documentation page.
Children
No Data