Skip to content

Introduce a NamingStrategy [DATAJDBC-107] #286

@spring-projects-issues

Description

@spring-projects-issues

Jens Schauder opened DATAJDBC-107 and commented

Currently, it is assumed, that the column names match the property names and table names match entity names.

It should be possible to provide a NamingStrategy, to change that assumption.

Using a NamingStrategy it should be possible to:

  • specify the schema where to find a table
  • specify table dependent prefixes for column names
  • different strategies to convert a property name to a column name
  • make all the above context dependent. Especially it should be possible to get some context information (e.g. a customer instance) injected and use this to derive table names (so that one can easily have one schema per customer

Referenced from: pull request #12

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions