联合查询实体类写法:
实体
package *.entity;
import ........;
@SuppressWarnings("serial")
@javax.persistence.Entity//可持久实体
@Table(name="codedetail")//操作的表名
public class AdvanceDetailVW implements Serializable, Cloneable, AdvanceDetail {
/** ID */
@Id
protected String id;
protected others colum.....;
/** 交易时间 */
protected String time;
protected String type;
//以下为get set方法,略
}