You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
984 B
43 lines
984 B
package com.fr.plugin.entity; |
|
|
|
import com.fr.stable.db.entity.BaseEntity; |
|
import com.fr.third.javax.persistence.Column; |
|
import com.fr.third.javax.persistence.Entity; |
|
import com.fr.third.javax.persistence.Table; |
|
|
|
import java.util.Date; |
|
|
|
//第一步添加这两个注解,特别是table的name属性要唯一,并将类继承到BaseEntity,会自动生产id字段 |
|
@Entity |
|
@Table( |
|
name = "plugin_user_token_relationship" |
|
) |
|
public class UserTokenEntity extends BaseEntity { |
|
|
|
//第二步注册要使用的字段加上@Column注解 |
|
@Column( |
|
name = "userName" |
|
) |
|
private String userName; |
|
|
|
@Column( |
|
name = "token" |
|
) |
|
private String token; |
|
|
|
public String getUserName() { |
|
return userName; |
|
} |
|
|
|
public void setUserName(String userName) { |
|
this.userName = userName; |
|
} |
|
|
|
public String getToken() { |
|
return token; |
|
} |
|
|
|
public void setToken(String token) { |
|
this.token = token; |
|
} |
|
}
|
|
|