spring-projects / spring-projects/spring-data-relational
Make NamingStrategy return a SqlIdentifier instead of a String for Schema
Open
@schauder is already working on this.
Since Dec 6, 2021.
type: enhancement
- Dominant language
- Java
- Stars
- 827
- Forks
- 394
- PR merge metrics
- No merged PRs in 30d
Description
I want a mapping table name as “lowercase_schema”.table_name,but got another one like “UPPERCASE_SCHEMA”.TABLE_NAME
I found that trace :
RelationalPersistentEntityImpl#getTableName ->
SqlIdentifier.from(createDerivedSqlIdentifier(schema), tableName) ->
new CompositeSqlIdentifier(sqlIdentifiers) ->
CompositeSqlIdentifier#toString ->
toSql(IdentifierProcessing.ANSI) ->
then all my single SqlIdentifier execute toSql with IdentifierProcessing.ANSI before joining ->
My attribute quoted config is not working ...
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.