Class User

java.lang.Object
io.quarkus.hibernate.orm.panache.PanacheEntityBase
io.quarkus.hibernate.orm.panache.PanacheEntity
nunnink.dev.entity.User

@UserDefinition @Entity public class User extends io.quarkus.hibernate.orm.panache.PanacheEntity
  • Field Summary

    Fields inherited from class io.quarkus.hibernate.orm.panache.PanacheEntity

    id
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    create(String username, String password, String role)
    Adds a new user to the database

    Methods inherited from class io.quarkus.hibernate.orm.panache.PanacheEntity

    toString

    Methods inherited from class io.quarkus.hibernate.orm.panache.PanacheEntityBase

    count, count, count, count, delete, delete, delete, delete, deleteAll, deleteById, find, find, find, find, find, find, findAll, findAll, findById, findById, findByIdOptional, findByIdOptional, flush, getEntityManager, getSession, isPersistent, list, list, list, list, list, list, listAll, listAll, persist, persist, persist, persist, persistAndFlush, stream, stream, stream, stream, stream, stream, streamAll, streamAll, update, update, update

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • User

      public User()
  • Method Details

    • create

      public static void create(String username, String password, String role)
      Adds a new user to the database
      Parameters:
      username - the username
      password - the unencrypted password (it is encrypted with bcrypt)
      role - the comma-separated roles