Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aeisele/jooqdepluralizestrategy


https://github.com/aeisele/jooqdepluralizestrategy

java jooq jooq-generator maven

Last synced: 1 day ago
JSON representation

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
```xml

jitpack.io
https://jitpack.io

```

Add dependency to this artifact to your jooq maven plugin config
```xml

org.jooq
jooq-codegen-maven
...


com.github.aeisele
jooqdepluralizestrategy
1.0



...


com.andreaseisele.jooq.strategy.DepluralizeNamingStrategy

...

```