Annotation Interface JoinColumn
Specifies a column for joining an entity association.
Example usage:
public class ExampleEntity {
@JoinColumn(name = "column_name", foreignKey = @ForeignKey(name = "fk_name"))
private String example;
}
- Since:
- 1.0
- Author:
- Blyzhnytsia Team
- See Also:
-
Required Element Summary
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionSpecifies the foreign key constraint for the column.
-
Element Details
-
name
String nameSpecifies the name of the column.- Returns:
- the name of the column
-
foreignKey
ForeignKey foreignKeySpecifies the foreign key constraint for the column.- Returns:
- the foreign key constraint for the column
- Default:
@io.github.blyznytsiaorg.bibernate.annotation.ForeignKey(name="")
-