Package nunnink.dev.entity
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 -
Method Summary
Methods inherited from class io.quarkus.hibernate.orm.panache.PanacheEntity
toStringMethods 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
-
Constructor Details
-
User
public User()
-
-
Method Details
-
create
Adds a new user to the database- Parameters:
username- the usernamepassword- the unencrypted password (it is encrypted with bcrypt)role- the comma-separated roles
-