Interface EntityFactory

All Known Implementing Classes:
EntityFactoryImpl

public interface EntityFactory
  • Method Summary

    Modifier and Type
    Method
    Description
    default <T> T
    Instantiate an entity
    <T> T
    createInstance(Class<T> clazz, @Nullable Serializable id)
    Instantiate an entity
  • Method Details

    • createInstance

      <T> T createInstance(Class<T> clazz, @Nullable @Nullable Serializable id)
      Instantiate an entity
      Parameters:
      clazz - Class of the entity
      id - id of the entity
    • createInstance

      default <T> T createInstance(Class<T> clazz)
      Instantiate an entity
      Parameters:
      clazz - Class of the entity