|
|
@@ -13,16 +13,20 @@ import java.io.Serializable; |
|
|
|
*/ |
|
|
|
public class DefaultEntity extends BaseBean implements Serializable, Cloneable { |
|
|
|
//表名 |
|
|
|
private String _def_table_name; |
|
|
|
private final static String tableNameKey = "_def_table_name"; |
|
|
|
|
|
|
|
public DefaultEntity() {} |
|
|
|
|
|
|
|
public DefaultEntity(String _def_table_name) { |
|
|
|
this._def_table_name = _def_table_name; |
|
|
|
this.put(tableNameKey,_def_table_name); |
|
|
|
} |
|
|
|
|
|
|
|
public ModelTable getModelTable() { |
|
|
|
return ModelTableCache.getInstance().getByName(_def_table_name); |
|
|
|
return ModelTableCache.getInstance().getByName(getTableName()); |
|
|
|
} |
|
|
|
|
|
|
|
public String getTableName() { |
|
|
|
return getStr(tableNameKey); |
|
|
|
} |
|
|
|
|
|
|
|
//根据实体定义,设默认值 |
|
|
|