Class SpringDataHelper

java.lang.Object
sk.iway.iwcm.system.adminlog.SpringDataHelper

@Component public class SpringDataHelper extends Object
  • Constructor Details

    • SpringDataHelper

      public SpringDataHelper()
  • Method Details

    • getSpringDataEntity

      public Object getSpringDataEntity(Object entity, Long id)
      Fetches the real entity from the database by iterating through all available EntityManagers.
      Parameters:
      entity - The entity class to fetch.
      id - The ID of the entity.
      Returns:
      The real entity from the database, or null if not found.