HI All, I need to implement one to many relationship using @secondary

HI All,

I need to implement one to many relationship using @secondarytable annotaion. How can I achieve this?
When I give @onetoMany annotation in column definition.
it throws me an error as mapping exception while mapping to data store

Below is the notation I am using
<xsd:complexType name="test">
<xsd:annotation>
<xsd:appinfo source="appian.jpa">
@Table(name="test")
                              @SecondaryTable(name="test1")
</xsd:appinfo>
</xsd:annotation>
          .......
          .......
<xsd:element name="id" type="xsd:int" nillable="true">
           <xsd:annotation>
<xsd:appinfo source="appian.jpa">
                     @OneToMany(indexed=false)
                                        @Column(name="ID",nullable="false",insertable="false", updatable="false")
</xsd:appinfo>
</xsd:annotation>
</xsd:element>...

OriginalPostID-119521

OriginalPostID-119521

  Discussion posts and replies are publicly visible