赞
踩
直接上代码:
org.springframework.data
spring-data-jpa
2.1.3.RELEASE
org.hibernate
hibernate-core
5.4.0.Final
package com.oukele.the_data_jpa.entity;
import org.springframework.stereotype.Component;
import javax.persistence.*;
@Entity
@Table(name = “user”)
public class User {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = “Id”)
private int id;
@Column(name = “userName”)
private String name;
private String password;
public int getId() {
return id;</
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。