Skip to content

Instantly share code, notes, and snippets.

@httpmurilo
Created March 29, 2024 01:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save httpmurilo/85efcca52da7953b48a8f1f7046dbc75 to your computer and use it in GitHub Desktop.
Save httpmurilo/85efcca52da7953b48a8f1f7046dbc75 to your computer and use it in GitHub Desktop.
User.java
@Entity
public class User {
public User() {}
@Id
private int id;
private String name;
@Enumerated(EnumType.STRING)
private Status isActive;
@Enumerated(EnumType.STRING)
private Status isAdmin;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment