web-appxmlns:xsi=""xmlns=""xmlns:web=" />

Spring Data Jpa 详解 (配置篇)

作者:Spring Data Jpa 详解 (配置篇) 来源:未知 2022-06-21 09:09   阅读:

xmlversion="1.0"encoding="UTF-8"?>web-appxmlns:xsi=""xmlns=""xmlns:web=

xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="" xmlns="" xmlns:web="" xsi:schemaLocation=" " id="WebApp_ID" version="3.0">
  <display-name>springMVCdisplay-name>
  
  
  <context-param>
    <param-name>contextConfigLocationparam-name>
    <param-value>
            classpath:spring-config
@Entity
@Table(name="T_SPRINGJPA_USER")
public class User {
    
    @SequenceGenerator(name ="MY_SUQUENCE", sequenceName="DEFAULT_SUQUENCE")
    @Id
    @GeneratedValue(generator="MY_SUQUENCE")
    private Long id;
    
    @Column(name="USER_NAME")
    private String userName;
    
    @Column(name="USER_PASSWORD")
    private String passWord;

    
    public Long getId() {
        return id;
    }
    public void setId(Long id) {
        this.id= id;
    }
    public String getUserName() {
        return userName;
    }
    public void setUserName(String userName) {
        this.userName= userName;
    }
    public String getPassWord() {
        return passWord;
    }
    public void setPassWord(String passWord) {
        this.passWord= passWord;
    }
    @Override
    public String toString() {
        return "User [id=" + id + ", userName=" + userName + ", passWord="
                + passWord + "]";
    }
}

分享给小伙伴们:
Spring Data Jpa 详解 (配置篇):如果本文侵犯了您的权利, 请联系本网立即做出处理,谢谢。
当前位置:殿试作文网 > 岳阳楼游作文Spring Data Jpa 详解 (配置篇)转载请注明出处。
下一篇:没有了
Spring Data Jpa 详解 (配置篇)相关文章