Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] global class name prefix and suffix #14

Open
karsany opened this issue Jan 31, 2019 · 1 comment
Open

[feature] global class name prefix and suffix #14

karsany opened this issue Jan 31, 2019 · 1 comment

Comments

@karsany
Copy link
Contributor

karsany commented Jan 31, 2019

I suggest a new feature:

Scenario:
Developer would like to define global rule for class name prefixes and/or suffixes.

Example:
Given two tables in the database: customer and order_detail.

When the developer adds this to the config file:

 classNameGlobalRule:
   - prefix: Db
   - suffix: DTO

Both the prefix and suffix is optional.

Then the generator generates:

  • from table customer the DbCustomerDTO class.
  • from table order_detail the DbOrderDetailDTO class.
@seratch
Copy link
Collaborator

seratch commented Feb 18, 2019

Indeed, this one may be useful for some users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants