spring-projects / spring-projects/spring-data-relational

Make NamingStrategy return a SqlIdentifier instead of a String for Schema

Open
#1,104 6 comments 0 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.