Package org.hibernate.annotations
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
-
Element Details
-
idType
Class<?> idTypeThe Java class to use as the collection-id.
-