io.convergence_platform.common.database.DatabaseSeedSpec Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of service-lib Show documentation
Show all versions of service-lib Show documentation
Holds the common functionality needed by all Convergence Platform-based services written in Java.
The newest version!
package io.convergence_platform.common.database;
import java.util.HashMap;
import java.util.Map;
public class DatabaseSeedSpec {
public String table;
public Map fields = new HashMap<>();
public void addField(String name, Object value) {
fields.put(name, value);
}
public DatabaseSeedSpec table(String table) {
this.table = table;
return this;
}
public DatabaseSeedSpec field(String name, Object value) {
addField(name, value);
return this;
}
public static DatabaseSeedSpec create() {
return new DatabaseSeedSpec();
}
}