1 Reply Latest reply on Jun 27, 2005 7:26 PM by Emmanuel Bernard

    [JBoss4.0.3rc1] EJB 3 and SortedSet<>

    Renaud Denis Newbie

      Some remarks about a SortedSet one-to-many mapping:

      If I do not make a mistake:

      * A SortedSet requires a hibernate 3 @Sort annotation mapping:

      org.hibernate.AnnotationException: A sorted collection has to define @Sort: be.sysmedit.model.itrequest.Mission.activities

      * The @Sort annotation actually seems to requires a Comparator but does not handle a Comparable<> Object with SortType.NATURAL

      My question is:
      Are you planning to remove requirement on Hibernate's @Sort annotation and support a mapped SortedSet of Comparable<> objects? :)