Package top.codef.dao

Class AbstractDaoWithClass<T>

java.lang.Object
top.codef.dao.AbstractDaoWithClass<T>
All Implemented Interfaces:
AmebaDao

public abstract class AbstractDaoWithClass<T> extends Object implements AmebaDao
  • Constructor Details

    • AbstractDaoWithClass

      public AbstractDaoWithClass()
  • Method Details

    • getEntityManager

      public jakarta.persistence.EntityManager getEntityManager()
      Specified by:
      getEntityManager in interface AmebaDao
    • getSession

      public org.hibernate.Session getSession()
    • clazz

      protected abstract Class<T> clazz()
    • create

      public void create(T entity)
    • detach

      public void detach(T entity)
    • createOrUpdate

      public void createOrUpdate(T entity)
    • merge

      public void merge(T entity)
    • delete

      public void delete(Serializable id)
    • delete

      public void delete(T value)
    • get

      public T get(Serializable id)
    • flush

      public void flush()
    • refresh

      public void refresh(T entity)