seems the jpa api is not updated to the latest spec? there are foreignkeys in the join-table but not exist in the @JoinTable class <xsd:complexType name="join-table"> <xsd:annotation> <xsd:documentation>
@Target({METHOD, FIELD}) @Retention(RUNTIME) public @interface JoinTable { String name() default ""; String catalog() default ""; String schema() default ""; JoinColumn[] joinColumns() default {}; JoinColumn[] inverseJoinColumns() default {}; UniqueConstraint[] uniqueConstraints() default {}; Index[] indexes() default {}; } </xsd:documentation> </xsd:annotation> <xsd:sequence> <xsd:sequence> <xsd:element name="join-column" type="orm:join-column" minOccurs="0" maxOccurs="unbounded"/> <xsd:element name="foreign-key" type="orm:foreign-key" minOccurs="0"/> </xsd:sequence> <xsd:sequence> <xsd:element name="inverse-join-column" type="orm:join-column" minOccurs="0" maxOccurs="unbounded"/> <xsd:element name="inverse-foreign-key" type="orm:foreign-key" minOccurs="0"/> </xsd:sequence> <xsd:element name="unique-constraint" type="orm:unique-constraint" minOccurs="0" maxOccurs="unbounded"/> <xsd:element name="index" type="orm:index" minOccurs="0" maxOccurs="unbounded"/> </xsd:sequence> <xsd:attribute name="name" type="xsd:string"/> <xsd:attribute name="catalog" type="xsd:string"/> <xsd:attribute name="schema" type="xsd:string"/> </xsd:complexType> On Feb 5, 2013, at 10:31 PM, Strong Liu <st...@hibernate.org> wrote: > thanks > > https://hibernate.onjira.com/browse/HHH-7969 > > On Feb 5, 2013, at 10:13 PM, Steve Ebersole <st...@hibernate.org> wrote: > >> I should probably add this to the Javadocs for columnList. Here is what the >> spec says: >> >> The syntax of the columnList element is a column_list, as follows: >> column::= index_column [,index_column]* >> index_column::= column_name [ASC | DESC] >> >> >> On 02/05/2013 03:02 AM, Strong Liu wrote: >>> I can work on this >>> >>> one question, it is not clear that how column names are separated in >>> javax.persistence.Index#columnList , can we assume it is using ", "? >>> >>> On Feb 5, 2013, at 3:49 AM, Steve Ebersole <st...@hibernate.org> wrote: >>> >>>> I need some help in implementing JPA 2.1 defined support for @Index and >>>> @ForeignKey. >>>> _______________________________________________ >>>> hibernate-dev mailing list >>>> hibernate-dev@lists.jboss.org >>>> https://lists.jboss.org/mailman/listinfo/hibernate-dev >>> >>> ------------------------- >>> Best Regards, >>> >>> Strong Liu <stliu at hibernate.org> >>> http://about.me/stliu/bio >>> >>> >>> >> > > ------------------------- > Best Regards, > > Strong Liu <stliu at hibernate.org> > http://about.me/stliu/bio > > > ------------------------- Best Regards, Strong Liu <stliu at hibernate.org> http://about.me/stliu/bio _______________________________________________ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev