Class SqlSchemaUtils
java.lang.Object
io.micronaut.data.model.query.builder.sql.SqlSchemaUtils
Utility class providing methods for working with SQL schema definitions.
- Since:
- 4.13.0
- Author:
- radovanradic
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull List<SqlTableMapping>
getSqlTableMappings
(@NonNull PersistentEntity entity) Returns list ofSqlTableMapping
for persistent entity.
-
Field Details
-
TABLE_TYPE
- See Also:
-
TABLE_CATALOG_COLUMN
- See Also:
-
TABLE_SCHEMA_COLUMN
- See Also:
-
TABLE_NAME_COLUMN
- See Also:
-
COLUMN_NAME_COLUMN
- See Also:
-
DATA_TYPE_COLUMN
- See Also:
-
TYPE_NAME_COLUMN
- See Also:
-
COLUMN_SIZE_COLUMN
- See Also:
-
DECIMAL_DIGITS_COLUMN
- See Also:
-
NULLABLE_COLUMN
- See Also:
-
-
Method Details
-
getSqlTableMappings
@NonNull public static @NonNull List<SqlTableMapping> getSqlTableMappings(@NonNull @NonNull PersistentEntity entity) Returns list ofSqlTableMapping
for persistent entity. It will contain main entity table and potentially joined tables.- Parameters:
entity
- The entity- Returns:
- The SQL table definitions for the given entity
- Since:
- 4.13.0
-