Skip to content

Instantly share code, notes, and snippets.

@dmi3coder
Created May 12, 2020 12:10
Show Gist options
  • Save dmi3coder/02102afa42301f2a96876a40685da559 to your computer and use it in GitHub Desktop.
Save dmi3coder/02102afa42301f2a96876a40685da559 to your computer and use it in GitHub Desktop.
User Object for Quarkus JWT auth example
package tech.donau.quarkify.data;
import io.quarkus.hibernate.orm.panache.PanacheEntity;
import javax.persistence.Entity;
@Entity
public class User extends PanacheEntity {
public String login;
public String email;
public String password; // Use e.g Bcrypt to encrypt password, don't store it as plain text :)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment