Package io.quarkus.hibernate.orm.panache
Class PanacheEntity
- java.lang.Object
-
- io.quarkus.hibernate.orm.panache.PanacheEntityBase
-
- io.quarkus.hibernate.orm.panache.PanacheEntity
-
@MappedSuperclass public abstract class PanacheEntity extends PanacheEntityBase
Represents an entity with a generated ID field
id
of typeLong
. If your Hibernate entities extend this class they gain the ID field and auto-generated accessors to all their public fields (unless annotated withTransient
), as well as all the useful methods fromPanacheEntityBase
.If you want a custom ID type or strategy, you can directly extend
PanacheEntityBase
instead, and write your own ID field. You will still get auto-generated accessors and all the useful methods.- Author:
- Stéphane Épardaud
- See Also:
PanacheEntityBase
-
-
Constructor Summary
Constructors Constructor Description PanacheEntity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
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, 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
-
-
-
-
Field Detail
-
id
public Long id
The auto-generated ID field. This field is set by Hibernate ORM when this entity is persisted.- See Also:
PanacheEntityBase.persist()
-
-