Annotation Interface CollectionIdJavaClass


@Incubating @Target({METHOD,FIELD,ANNOTATION_TYPE}) @Retention(RUNTIME) public @interface CollectionIdJavaClass
Specifies the Java class to use for the id of an id-bag mapping. An alternative to CollectionIdJavaType. E.g.
 @Bag
 @CollectionId(generator="increment")
 @CollectionIdJavaClass(Integer.class)
 Collection<Person> authors;
 
Since:
7.1
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The Java class to use as the collection-id.
  • Element Details

    • idType

      Class<?> idType
      The Java class to use as the collection-id.