Top Description Methods
org.hibernate.annotations

public @Interface AnyDiscriminatorValue

extends Annotation
Annotations
@Target:METHOD, FIELD, ANNOTATION_TYPE
@Retention:RUNTIME
@Repeatable:AnyDiscriminatorValues
Imports
java.lang.annotation.Repeatable, .Retention, .Target

Specifies the mapping of a single any-valued discriminator value to its corresponding entity type.

This annotation may be applied:

Since
6.0
See Also
Any, AnyDiscriminator

Method Summary

Modifier and TypeMethod and Description
public String
discriminator()

The discriminator value

public Class<?>
entity()

The corresponding entity

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

discriminatorback to summary
public String discriminator()

The discriminator value

entityback to summary
public Class<?> entity()

The corresponding entity