src/main/kotlin/com/flightfeather/uav/domain/entity/SourceTraceMsg.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/kotlin/com/flightfeather/uav/domain/mapper/SourceTraceMsgMapper.kt | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/resources/mapper/SourceTraceMsgMapper.xml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/main/kotlin/com/flightfeather/uav/domain/entity/SourceTraceMsg.java
对比新文件 @@ -0,0 +1,159 @@ package com.flightfeather.uav.domain.entity; import java.util.Date; import javax.persistence.*; @Table(name = "source_trace_msg") public class SourceTraceMsg { @Id private Integer id; @Column(name = "device_code") private String deviceCode; @Column(name = "factor_name") private String factorName; @Column(name = "exception_type") private Integer exceptionType; @Column(name = "start_time") private Date startTime; @Column(name = "end_time") private Date endTime; @Column(name = "msg_type") private Integer msgType; @Column(name = "create_time") private Date createTime; private String content; /** * @return id */ public Integer getId() { return id; } /** * @param id */ public void setId(Integer id) { this.id = id; } /** * @return device_code */ public String getDeviceCode() { return deviceCode; } /** * @param deviceCode */ public void setDeviceCode(String deviceCode) { this.deviceCode = deviceCode == null ? null : deviceCode.trim(); } /** * @return factor_name */ public String getFactorName() { return factorName; } /** * @param factorName */ public void setFactorName(String factorName) { this.factorName = factorName == null ? null : factorName.trim(); } /** * @return exception_type */ public Integer getExceptionType() { return exceptionType; } /** * @param exceptionType */ public void setExceptionType(Integer exceptionType) { this.exceptionType = exceptionType; } /** * @return start_time */ public Date getStartTime() { return startTime; } /** * @param startTime */ public void setStartTime(Date startTime) { this.startTime = startTime; } /** * @return end_time */ public Date getEndTime() { return endTime; } /** * @param endTime */ public void setEndTime(Date endTime) { this.endTime = endTime; } /** * @return msg_type */ public Integer getMsgType() { return msgType; } /** * @param msgType */ public void setMsgType(Integer msgType) { this.msgType = msgType; } /** * @return create_time */ public Date getCreateTime() { return createTime; } /** * @param createTime */ public void setCreateTime(Date createTime) { this.createTime = createTime; } /** * @return content */ public String getContent() { return content; } /** * @param content */ public void setContent(String content) { this.content = content == null ? null : content.trim(); } } src/main/kotlin/com/flightfeather/uav/domain/mapper/SourceTraceMsgMapper.kt
对比新文件 @@ -0,0 +1,8 @@ package com.flightfeather.uav.domain.mapper import com.flightfeather.uav.domain.MyMapper import com.flightfeather.uav.domain.entity.SourceTraceMsg import org.apache.ibatis.annotations.Mapper @Mapper interface SourceTraceMsgMapper : MyMapper<SourceTraceMsg?> src/main/resources/mapper/SourceTraceMsgMapper.xml
对比新文件 @@ -0,0 +1,35 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <mapper namespace="com.flightfeather.uav.domain.mapper.SourceTraceMsgMapper"> <resultMap id="BaseResultMap" type="com.flightfeather.uav.domain.entity.SourceTraceMsg"> <!-- WARNING - @mbg.generated --> <id column="id" jdbcType="INTEGER" property="id" /> <result column="device_code" jdbcType="VARCHAR" property="deviceCode" /> <result column="factor_name" jdbcType="VARCHAR" property="factorName" /> <result column="exception_type" jdbcType="INTEGER" property="exceptionType" /> <result column="start_time" jdbcType="TIMESTAMP" property="startTime" /> <result column="end_time" jdbcType="TIMESTAMP" property="endTime" /> <result column="msg_type" jdbcType="INTEGER" property="msgType" /> <result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> </resultMap> <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.flightfeather.uav.domain.entity.SourceTraceMsg"> <!-- WARNING - @mbg.generated --> <result column="content" jdbcType="LONGVARCHAR" property="content" /> </resultMap> <sql id="Base_Column_List"> <!-- WARNING - @mbg.generated --> id, device_code, factor_name, exception_type, start_time, end_time, msg_type, create_time </sql> <sql id="Blob_Column_List"> <!-- WARNING - @mbg.generated --> content </sql> </mapper>