Class EntityColumnDetails
java.lang.Object
io.github.blyznytsiaorg.bibernate.entity.metadata.EntityColumnDetails
Represents metadata about an entity class, including details about its columns, indexes, and relationships.
This class provides methods to manipulate and retrieve metadata associated with the entity.
- Since:
- 1.0
- Author:
- Blyzhnytsia Team
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprivate ColumnMetadata
private CreationTimestampMetadata
private Field
private String
private Class
<?> private GeneratedValueMetadata
private IdMetadata
private boolean
private JoinColumnMetadata
private JoinTableMetadata
private ManyToManyMetadata
private ManyToOneMetadata
private OneToManyMetadata
private OneToOneMetadata
private SequenceGeneratorMetadata
private String
private UpdateTimestampMetadata
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate <T> void
addCascadeTypes
(List<CascadeType> types, Function<T, List<CascadeType>> function, T obj) Adds cascade types to the list if they are not null.Retrieves the cascade types associated with the entity column.
-
Field Details
-
field
-
fieldName
-
table
-
fieldType
-
isCollection
private boolean isCollection -
column
-
id
-
generatedValue
-
sequenceGenerator
-
oneToOne
-
oneToMany
-
manyToOne
-
manyToMany
-
joinColumn
-
joinTable
-
creationTimestampMetadata
-
updateTimestampMetadata
-
-
Constructor Details
-
EntityColumnDetails
public EntityColumnDetails()
-
-
Method Details
-
getCascadeTypes
Retrieves the cascade types associated with the entity column.- Returns:
- A list of cascade types associated with the entity column.
-
addCascadeTypes
private <T> void addCascadeTypes(List<CascadeType> types, Function<T, List<CascadeType>> function, T obj) Adds cascade types to the list if they are not null.- Type Parameters:
T
- The type of the object.- Parameters:
types
- The list of cascade types to add to.function
- The function to retrieve cascade types from the object.obj
- The object containing cascade types.
-