Package 

Class PanacheEntity

  • All Implemented Interfaces:
    io.quarkus.hibernate.orm.panache.kotlin.PanacheEntityBase

    @MappedSuperclass() 
    public class PanacheEntity
     implements PanacheEntityBase
                        

    Represents an entity with a generated ID field id of type Long. If your Hibernate entities extend this class they gain the ID field and auto-generated accessors to all their public fields (unless annotated with Transient), as well as all the useful methods from PanacheEntityBase.

    <p> 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.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private Long id
    • Constructor Summary

      Constructors 
      Constructor Description
      PanacheEntity()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Long getId() The auto-generated ID field.
      Unit setId(Long id) The auto-generated ID field.
      String toString() Default toString() implementation
      • Methods inherited from class io.quarkus.hibernate.orm.panache.kotlin.PanacheEntityBase

        delete, isPersistent, persist, persistAndFlush
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PanacheEntity

        PanacheEntity()
    • Method Detail

      • getId

         Long getId()

        The auto-generated ID field. This field is set by Hibernate ORM when this entity is persisted.

      • setId

         Unit setId(Long id)

        The auto-generated ID field. This field is set by Hibernate ORM when this entity is persisted.