Package com.querydsl.sql.codegen
Class OriginalNamingStrategy
java.lang.Object
com.querydsl.sql.codegen.AbstractNamingStrategy
com.querydsl.sql.codegen.OriginalNamingStrategy
- All Implemented Interfaces:
NamingStrategy
OriginalNamingStrategy
preserves the table and column names in the conversion- Author:
- tiwe
-
Field Summary
Fields inherited from class com.querydsl.sql.codegen.AbstractNamingStrategy
foreignKeysClassName, foreignKeysVariable, primaryKeysClassName, primaryKeysVariable, reservedSuffix
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetClassName
(String tableName) Convert the given tableName to a simple class namegetDefaultAlias
(EntityType entityType) Get the default alias for the given EntityTypegetDefaultVariableName
(EntityType entityType) Get the default variable name for the given EntityTypegetPropertyName
(String columnName, EntityType entityType) Convert the given column name to a property namegetPropertyNameForForeignKey
(String foreignKeyName, EntityType entityType) Convert the given foreign key name to a foreign key property namegetPropertyNameForInverseForeignKey
(String foreignKeyName, EntityType entityType) Convert the given foreign key name to a foreign key property namegetPropertyNameForPrimaryKey
(String primaryKeyName, EntityType model) Convert the given primary key name to a primary key property nameMethods inherited from class com.querydsl.sql.codegen.AbstractNamingStrategy
appendSchema, escape, getClassName, getForeignKeysClassName, getForeignKeysVariable, getPackage, getPrimaryKeysClassName, getPrimaryKeysVariable, normalizeColumnName, normalizeJavaName, normalizeSchemaName, normalizeSQLName, normalizeTableName, setForeignKeysClassName, setForeignKeysVariable, setPrimaryKeysClassName, setPrimaryKeysVariable, setReservedSuffix, shouldGenerateClass, shouldGenerateForeignKey
-
Constructor Details
-
OriginalNamingStrategy
public OriginalNamingStrategy()
-
-
Method Details
-
getClassName
Description copied from interface:NamingStrategy
Convert the given tableName to a simple class name- Returns:
-
getDefaultAlias
Description copied from interface:NamingStrategy
Get the default alias for the given EntityType- Returns:
-
getDefaultVariableName
Description copied from interface:NamingStrategy
Get the default variable name for the given EntityType- Returns:
-
getPropertyName
Description copied from interface:NamingStrategy
Convert the given column name to a property name- Returns:
-
getPropertyNameForForeignKey
Description copied from interface:NamingStrategy
Convert the given foreign key name to a foreign key property name- Returns:
-
getPropertyNameForInverseForeignKey
Description copied from interface:NamingStrategy
Convert the given foreign key name to a foreign key property name- Returns:
-
getPropertyNameForPrimaryKey
Description copied from interface:NamingStrategy
Convert the given primary key name to a primary key property name- Returns:
-