Last active
June 23, 2018 09:39
-
-
Save Ikhiloya/8d1d04db5891ac75bbb3de4d587099fa to your computer and use it in GitHub Desktop.
user entity for spring-boot-jpa-oracle tutorial
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Entity | |
@Table(name = "USER_TABLE") | |
public class User { | |
@Column(name = "ID") | |
@Id | |
@GeneratedValue(strategy = GenerationType.AUTO) | |
private Integer id; | |
@Column(name = "USER_NAME", nullable = true, length = 255) | |
private String name; | |
@Column(name = "USER_SALARY", nullable = true, length = 10) | |
private Integer salary; | |
protected User() { | |
} | |
//constructor, setters and getters omitted for brevity | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment