// Path: QuickProject-Core/src/test/java/chanedi/bas/dao/EventProcessDAO.java
// public interface EventProcessDAO extends EntityDAO<EventProcess> {
// }
// 
// Path: QuickProject-Core/src/test/java/chanedi/bas/model/EventProcess.java
// @Data
// @Table(name = "T_EVE_EVENT_PROCESS")
// public class EventProcess extends Entity {
// 
//     private static final long serialVersionUID = -5227564951878481064L;
// 
//     private String modifyUserCode;
//     private String processType;
//     private Double stepInterval;
//     private Date modifyTime;
//     private Date createTime;
//     private Integer processSeq;
//     private String eventTypeId;
//     private Object id;
//     private String status;
//     private String createUserCode;
// 
// }
// 
// Path: QuickProject-Core/src/main/java/chanedi/dao/complexQuery/Sort.java
// @Data
// public class Sort implements Serializable {
// 
//     private static final long serialVersionUID = 7026434198845897214L;
//     private String property;
//     private String tableAlias;
//     private String column;
//     private Direction direction;
// 
//     public Sort() {
//         super();
//         direction = Direction.ASC;
//     }
// 
//     public Sort(String property) {
//         this();
//         this.property = property;
//     }
// 
//     public Sort(String property, Direction direction) {
//         this();
//         this.property = property;
//         this.direction = direction;
//     }
// 
//     public static enum Direction {
//         ASC, DESC;
//     }
// 
// }


import chanedi.bas.dao.EventProcessDAO;
import chanedi.bas.model.EventProcess;
import chanedi.dao.complexQuery.Sort;
import org.junit.Before;
import org.junit.Test;
import org.springframework.jdbc.datasource.DataSourceUtils;
import javax.annotation.Resource;
import javax.sql.DataSource;
import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;
                "   EVENT_TYPE_ID        VARCHAR2(50),\n" +
                "   PROCESS_SEQ          NUMERIC(2),\n" +
                "   PROCESS_TYPE         VARCHAR2(50),\n" +
                "   CREATE_USER_CODE     VARCHAR2(50),\n" +
                "   CREATE_TIME          TIMESTAMP,\n" +
                "   MODIFY_USER_CODE     VARCHAR2(50),\n" +
                "   MODIFY_TIME          TIMESTAMP,\n" +
                "   STEP_INTERVAL        NUMERIC(8,2),\n" +
                "   STATUS               VARCHAR2(50),\n" +
                "   constraint PK_EVE_EVENT_PROCESS_ID primary key (ID)\n" +
                ");");
        EventProcess eventProcess = new EventProcess();
        eventProcess.setId("test");
        eventProcess.setProcessType("test");
        eventProcessDAO.insert(eventProcess);
        eventProcess.setId("test1");
        eventProcess.setProcessType("test");
        eventProcessDAO.insert(eventProcess);
    }

    @Test
    public void testGetAll() {
        eventProcessDAO.getAll();
    }

    @Test
    public void testGet() {
        EventProcess params = new EventProcess();
        params.setProcessType("test");
        logger.info(eventProcessDAO.get(params, null, 0, 1).toString());
// Path: QuickProject-Core/src/test/java/chanedi/bas/dao/EventProcessDAO.java
// public interface EventProcessDAO extends EntityDAO<EventProcess> {
// }
// 
// Path: QuickProject-Core/src/test/java/chanedi/bas/model/EventProcess.java
// @Data
// @Table(name = "T_EVE_EVENT_PROCESS")
// public class EventProcess extends Entity {
// 
//     private static final long serialVersionUID = -5227564951878481064L;
// 
//     private String modifyUserCode;
//     private String processType;
//     private Double stepInterval;
//     private Date modifyTime;
//     private Date createTime;
//     private Integer processSeq;
//     private String eventTypeId;
//     private Object id;
//     private String status;
//     private String createUserCode;
// 
// }
// 
// Path: QuickProject-Core/src/main/java/chanedi/dao/complexQuery/Sort.java
// @Data
// public class Sort implements Serializable {
// 
//     private static final long serialVersionUID = 7026434198845897214L;
//     private String property;
//     private String tableAlias;
//     private String column;
//     private Direction direction;
// 
//     public Sort() {
//         super();
//         direction = Direction.ASC;
//     }
// 
//     public Sort(String property) {
//         this();
//         this.property = property;
//     }
// 
//     public Sort(String property, Direction direction) {
//         this();
//         this.property = property;
//         this.direction = direction;
//     }
// 
//     public static enum Direction {
//         ASC, DESC;
//     }
// 
// }


// Path: QuickProject-Core/src/test/java/chanedi/test/DaoTest.java
import chanedi.bas.dao.EventProcessDAO;
import chanedi.bas.model.EventProcess;
import chanedi.dao.complexQuery.Sort;
import org.junit.Before;
import org.junit.Test;
import org.springframework.jdbc.datasource.DataSourceUtils;
import javax.annotation.Resource;
import javax.sql.DataSource;
import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;

                "   EVENT_TYPE_ID        VARCHAR2(50),\n" +
                "   PROCESS_SEQ          NUMERIC(2),\n" +
                "   PROCESS_TYPE         VARCHAR2(50),\n" +
                "   CREATE_USER_CODE     VARCHAR2(50),\n" +
                "   CREATE_TIME          TIMESTAMP,\n" +
                "   MODIFY_USER_CODE     VARCHAR2(50),\n" +
                "   MODIFY_TIME          TIMESTAMP,\n" +
                "   STEP_INTERVAL        NUMERIC(8,2),\n" +
                "   STATUS               VARCHAR2(50),\n" +
                "   constraint PK_EVE_EVENT_PROCESS_ID primary key (ID)\n" +
                ");");
        EventProcess eventProcess = new EventProcess();
        eventProcess.setId("test");
        eventProcess.setProcessType("test");
        eventProcessDAO.insert(eventProcess);
        eventProcess.setId("test1");
        eventProcess.setProcessType("test");
        eventProcessDAO.insert(eventProcess);
    }

    @Test
    public void testGetAll() {
        eventProcessDAO.getAll();
    }

    @Test
    public void testGet() {
        EventProcess params = new EventProcess();
        params.setProcessType("test");
        logger.info(eventProcessDAO.get(params, null, 0, 1).toString());
        List<Sort> sortList = new ArrayList<Sort>();