@OrderBy annotation not allowed

Hi, 

I am getting the following error while trying to add the annotation @OrderBy with the parameter as follows:

<xsd:appinfo source="appian.jpa">@OneToMany(cascade=CascadeType.ALL, indexed=false) @JoinColumn(name="ID")  @OrderBy("sortfield")</xsd:appinfo>

Error:  A type mapping annotation is invalid: Hibernate mapping generation failed (MappingException)

Note: my DB is Oracle

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data