Class PanacheEntity
- java.lang.Object
-
- io.quarkiverse.groovy.hibernate.reactive.panache.PanacheEntityBase
-
- io.quarkiverse.groovy.hibernate.reactive.panache.PanacheEntity
-
@MappedSuperclass public abstract class PanacheEntity extends PanacheEntityBase
Represents an entity with a generated ID field
idof 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
PanacheEntityBaseinstead, and write your own ID field. You will still get auto-generated accessors and all the useful methods.- See Also:
PanacheEntityBase
-
-
Constructor Summary
Constructors Constructor Description PanacheEntity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringtoString()-
Methods inherited from class io.quarkiverse.groovy.hibernate.reactive.panache.PanacheEntityBase
delete, flush, getSession, isPersistent, persist, persist, persist, persist, persistAndFlush
-
-
-
-
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()
-
-