
com.draagon.meta.manager.db.defs.BaseDef Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of metaobjects-omdb Show documentation
Show all versions of metaobjects-omdb Show documentation
Relational Database ObjectManager libraries for MetaData-driven development.
The newest version!
package com.draagon.meta.manager.db.defs;
public abstract class BaseDef {
public NameDef name = null;
public BaseDef( NameDef name ) {
setNameDef( name );
}
public NameDef getNameDef() {
return name;
}
public void setNameDef(NameDef name) {
this.name = name;
}
public String toString() {
return getClass().getSimpleName() + " [" + getNameDef() + "]";
}
@Override
public int hashCode() {
return toString().hashCode();
}
@Override
public boolean equals( Object o ) {
if (!( o instanceof BaseDef )) return false;
if ( toString().equals( o.toString() )) return true;
return false;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy