Commit 6cee0372 authored by yanzg's avatar yanzg

接口文档的支持

parent 50ddefdf
package com.yanzuoguang.util.vo;
import com.yanzuoguang.util.base.ObjectHelper;
/**
* 获取关键字
*
* @param <T>
* @author 颜佐光
*/
public interface DataDaoKey<T> {
public abstract class DataDaoKey<T> {
/**
* 获取关键字
*
* @param from 来源对象
* @return
*/
String getKey(T from);
abstract String getKey(T from);
/**
* 将当前对象的属性,写入到历史对象中,用于更新函数
......@@ -21,5 +23,7 @@ public interface DataDaoKey<T> {
* @param history
* @param now
*/
void set(T history, T now);
public void set(T history, T now) {
ObjectHelper.writeWithFrom(history, now);
}
}
......@@ -8,17 +8,7 @@ import java.util.Map;
* @param <T>
* @author 颜佐光
*/
public abstract class DataDaoKeyConvert<T, M> implements DataDaoKey<T> {
/**
* 将当前对象的属性,写入到历史对象中,用于更新函数
*
* @param history
* @param now
*/
@Override
public void set(T history, T now) {
}
public abstract class DataDaoKeyConvert<T, M> extends DataDaoKey<T> {
/**
* 获取关键字
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment