Skip to content

Instantly share code, notes, and snippets.

@Ikhiloya
Last active June 23, 2018 09:39
Show Gist options
  • Save Ikhiloya/8d1d04db5891ac75bbb3de4d587099fa to your computer and use it in GitHub Desktop.
Save Ikhiloya/8d1d04db5891ac75bbb3de4d587099fa to your computer and use it in GitHub Desktop.
user entity for spring-boot-jpa-oracle tutorial
@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