zoukankan      html  css  js  c++  java
  • mybatis column 和property

    mybatis map文件中 resultMap中column和sql查询结果对应, property和实体private对应

     <resultMap id="VideoYcAppResultMap" type="com.video.core.pojo.VideoYcApp" >
        
        <id column="CarId" property="carId" jdbcType="BIGINT" />
        <id column="VideoId" property="videoId" jdbcType="BIGINT" />
        
      </resultMap>
     <sql id="Base_Column_List_Video_App">
        c.CarId,v.VideoId,v.Title,v.TotalVisit,v.TotalComment,v.CreatedDate,v.ImageLink,vr.MobileFileLink,Type=2
      </sql>
    View Code
    public class VideoYcApp implements Serializable {
        private Long carId;
        private Long videoId;
        private String title;
    
      public Long getCarId() {
            return carId;
        }
    
        public void setCarId(Long carId) {
            this.carId = carId;
        }
    
        public Long getVideoId() {
            return videoId;
        }
    
        public void setVideoId(Long videoId) {
            this.videoId = videoId;
        }
    
        public String getTitle() {
            return title;
        }
    
        public void setTitle(String title) {
            this.title = title;
        }
    
    }
  • 相关阅读:
    failed to push some refs to 'git@github.com:laniu/liuna.git'报错原因
    ECMAScript和JavaScript的关系
    js面试总结
    第16章 脚本化css
    代理模式
    SQL
    VS
    Js/Jquery获取iframe中的元素 在Iframe中获取父窗体的元素方法
    SQL
    C#
  • 原文地址:https://www.cnblogs.com/tonyauto/p/8044648.html
Copyright © 2011-2022 走看看