Top Description Methods
org.hibernate.annotations

public @Interface Target

extends Annotation
Annotations
@Deprecated
since:6.2
@Target:FIELD, METHOD
@Retention:RUNTIME
Imports
java.lang.annotation.Retention

Deprecated

since 6.2.

use annotation members of JPA association mapping annotations, for example, jakarta.persistence.OneToMany#targetEntity()

Explicitly specifies the target entity type in an association, avoiding reflection and generics resolution. This annotation is almost never useful.
Author
Emmanuel Bernard

Method Summary

Modifier and TypeMethod and Description
public Class<?>
value()

The target entity type.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public Class<?> value()

The target entity type.