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

org.zodiac.scaff.crud.config.FastOrmDefaultValueGeneratorInfo Maven / Gradle / Ivy

The newest version!
package org.zodiac.scaff.crud.config;

import java.util.HashMap;
import java.util.Map;
import java.util.Objects;

import org.zodiac.scaff.crud.generator.Generators;

public class FastOrmDefaultValueGeneratorInfo {

    private String defaultId = Generators.SNOW_FLAKE;

    private Map mappings = new HashMap<>();

    public FastOrmDefaultValueGeneratorInfo() {
    }

    public String getDefaultId() {
        return defaultId;
    }

    public FastOrmDefaultValueGeneratorInfo setDefaultId(String defaultId) {
        this.defaultId = defaultId;
        return this;
    }

    public Map getMappings() {
        return mappings;
    }

    public FastOrmDefaultValueGeneratorInfo setMappings(Map mappings) {
        this.mappings = mappings;
        return this;
    }

    @Override
    public int hashCode() {
        return Objects.hash(defaultId, mappings);
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        FastOrmDefaultValueGeneratorInfo other = (FastOrmDefaultValueGeneratorInfo)obj;
        return Objects.equals(defaultId, other.defaultId) && Objects.equals(mappings, other.mappings);
    }

    @Override
    public String toString() {
        return "[defaultId=" + defaultId + ", mappings=" + mappings + "]";
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy