Class ToOneEntityLoader


  • public final class ToOneEntityLoader
    extends Object
    • Method Detail

      • loadImmediate

        public static Object loadImmediate​(AuditReaderImplementor versionsReader,
                                           Class<?> entityClass,
                                           String entityName,
                                           Object entityId,
                                           Number revision,
                                           boolean removed,
                                           EnversService enversService)
        Immediately loads historical entity or its current state when excluded from audit process. Returns null reference if entity has not been found in the database.
      • createProxyOrLoadImmediate

        public static Object createProxyOrLoadImmediate​(AuditReaderImplementor versionsReader,
                                                        Class<?> entityClass,
                                                        String entityName,
                                                        Object entityId,
                                                        Number revision,
                                                        boolean removed,
                                                        EnversService enversService)
        Creates Hibernate proxy or retrieves the complete object of an entity if proxy is not allowed (e.g. @Proxy(lazy=false), final class).