All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.digitolio.jdbi.strategy.SnakeCaseTranslatingStrategy Maven / Gradle / Ivy

There is a newer version: 0.6.8.2
Show newest version
package com.digitolio.jdbi.strategy;

public class SnakeCaseTranslatingStrategy implements TranslatingStrategyAware {

    @Override
    public TranslatingStrategy getPropertyTranslatingStrategy() {
        return TranslatingStrategy.UPPER_UNDERSCORE;
    }

    @Override
    public int hashCode() {
        return getPropertyTranslatingStrategy().hashCode();
    }

    @Override
    public boolean equals(Object obj) {
        if (obj instanceof TranslatingStrategyAware) {
            TranslatingStrategyAware translater = (TranslatingStrategyAware) obj;
            return getPropertyTranslatingStrategy().equals(translater.getPropertyTranslatingStrategy());
        }
        return false;

    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy