Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aeisele/jooqdepluralizestrategy
https://github.com/aeisele/jooqdepluralizestrategy
java jooq jooq-generator maven
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/aeisele/jooqdepluralizestrategy
- Owner: aeisele
- Created: 2019-10-11T08:21:19.000Z (over 5 years ago)
- Default Branch: develop
- Last Pushed: 2019-10-11T09:33:05.000Z (over 5 years ago)
- Last Synced: 2024-11-27T11:40:44.142Z (2 months ago)
- Topics: java, jooq, jooq-generator, maven
- Language: Java
- Size: 7.81 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# jooq depluralize naming strategy
## Why?
Some people prefer table names to be in pluralized form which can lead to semantically strange code when using jooq
codegen for POJOs and DAOs.```java
Customers customer = CustomersDao.fetchOneById(4711);
```This strategy can be used to turn plural table terms into singular terms for code generation
```java
Customer customer = CustomersDao.fetchOneById(4711);
```## How
Add a plugin repository to use jitpack.io
```xmljitpack.io
https://jitpack.io```
Add dependency to this artifact to your jooq maven plugin config
```xmlorg.jooq
jooq-codegen-maven
...
com.github.aeisele
jooqdepluralizestrategy
1.0
...
com.andreaseisele.jooq.strategy.DepluralizeNamingStrategy
...
```