2.7.9 @DiscriminatorValue

Organization of this subsection
(1) Description
(2) Element

(1) Description

This annotation specifies the value of the column for identification used in the SINGLE_TABLE strategy or JOINED strategy. You can specify this annotation in a superclass or subclass.

The applicable target is class.

Note the following points:

(2) Element

The following table lists the elements of @DiscriminatorValue:

Element nameOptional/RequiredElement description
valueRequiredThis element specifies the value to be set up in the column for identification.

The details of attributes that are supported with Cosminexus JPA provider are as follows:

(a) value element
Type
String
Description
This element specifies the value to be set up in the column for identification.
The value that can be specified depends on the type of the column for identification.
Default value
Entity name