2016-10-31 11:31
@JFinal 实体类 我是 自动生成的
package com.laiford.treadmill.model;
import com.laiford.treadmill.model.base.BaseWmQuestionnaire;
/**
* Generated by JFinal.
*/
@SuppressWarnings("serial")
public class WmQuestionnaire extends BaseWmQuestionnaire {
public static final WmQuestionnaire dao = new WmQuestionnaire();
}
package com.laiford.treadmill.model.base;
import com.jfinal.plugin.activerecord.Model;
import com.jfinal.plugin.activerecord.IBean;
/**
* Generated by JFinal, do not modify this file.
*/
@SuppressWarnings("serial")
public abstract class BaseWmQuestionnaire> extends Model implements IBean {
public void setPaperID(java.lang.Integer paperID) {
set("paperID", paperID);
}
public java.lang.Integer getPaperID() {
return get("paperID");
}
public void setTitle(java.lang.String title) {
set("title", title);
}
public java.lang.String getTitle() {
return get("title");
}
public void setChoosetype(java.lang.Integer choosetype) {
set("choosetype", choosetype);
}
public java.lang.Integer getChoosetype() {
return get("choosetype");
}
public void setOptionA(java.lang.String optionA) {
set("optionA", optionA);
}
public java.lang.String getOptionA() {
return get("optionA");
}
public void setOptionB(java.lang.String optionB) {
set("optionB", optionB);
}
public java.lang.String getOptionB() {
return get("optionB");
}
public void setOptionC(java.lang.String optionC) {
set("optionC", optionC);
}
public java.lang.String getOptionC() {
return get("optionC");
}
public void setOptionD(java.lang.String optionD) {
set("optionD", optionD);
}
public java.lang.String getOptionD() {
return get("optionD");
}
public void setOptionE(java.lang.String optionE) {
set("optionE", optionE);
}
public java.lang.String getOptionE() {
return get("optionE");
}
public void setOptionF(java.lang.String optionF) {
set("optionF", optionF);
}
public java.lang.String getOptionF() {
return get("optionF");
}
public void setDiagnostic(java.lang.String diagnostic) {
set("diagnostic", diagnostic);
}
public java.lang.String getDiagnostic() {
return get("diagnostic");
}
这样 取不到吗
arp.addMapping("wm_questionnaire", "paperID", WmQuestionnaire.class);
2016-09-02 17:40
log4j.rootLogger=INFO, stdout,all,debug,info,error
# 输出信息到控制台
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target=System.out
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%n%-d{yyyy-MM-dd HH:mm:ss}%n[%p]-[Thread: %t]-[%C.%M()]: %m%n
# 输出所有信息到文件
log4j.appender.all=org.apache.log4j.DailyRollingFileAppender
log4j.appender.all.File=D:\\qunshi_log\\manager\\all.log
log4j.appender.all.Append=true
log4j.appender.all.layout=org.apache.log4j.PatternLayout
log4j.appender.all.layout.ConversionPattern=%n%-d{yyyy-MM-dd HH:mm:ss}%n[%p]-[Thread: %t]-[%C.%M()]: %m%n
# debug
log4j.appender.debug=org.apache.log4j.FileAppender
log4j.appender.debug.File=D:\\qunshi_log\\manager\\debug.log
log4j.appender.debug.Append=true
log4j.appender.debug.layout=org.apache.log4j.PatternLayout
log4j.appender.debug.layout.ConversionPattern=%n%-d{yyyy-MM-dd HH:mm:ss}%n[%p]-[Thread: %t]-[%C.%M()]: %m%n
log4j.appender.debug.filter.F1=org.apache.log4j.varia.LevelRangeFilter
log4j.appender.debug.filter.F1.LevelMin=DEBUG
log4j.appender.debug.filter.F1.LevelMax=DEBUG
# info
log4j.appender.info=org.apache.log4j.FileAppender
log4j.appender.info.File=D:\\qunshi_log\\manager\\info.log
log4j.appender.info.Append=true
log4j.appender.info.Threshold=ERROR
log4j.appender.info.layout=org.apache.log4j.PatternLayout
log4j.appender.info.layout.ConversionPattern=%n%-d{yyyy-MM-dd HH:mm:ss}%n[%p]-[Thread: %t]-[%C.%M()]: %m%n
log4j.appender.info.filter.F1=org.apache.log4j.varia.LevelRangeFilter
log4j.appender.info.filter.F1.LevelMin=INFO
log4j.appender.info.filter.F1.LevelMax=INFO
# error
log4j.appender.error=org.apache.log4j.FileAppender
log4j.appender.error.File=D:\\qunshi_log\\manager\\error.log
log4j.appender.error.Append=true
log4j.appender.error.Threshold=ERROR
log4j.appender.error.layout=org.apache.log4j.PatternLayout
log4j.appender.error.layout.ConversionPattern=%n%-d{yyyy-MM-dd HH:mm:ss}%n[%p]-[Thread: %t]-[%C.%M()]: %m%n