Class FakeObjectProvider
- java.lang.Object
-
- com.atlassian.confluence.impl.backuprestore.restore.idmapping.FakeObjectProvider
-
public class FakeObjectProvider extends Object
Creates map of an empty objects for id generation for all entities that could be restored during space restore- Since:
- 8.1.0
-
-
Constructor Summary
Constructors Constructor Description FakeObjectProvider(Collection<ExportableEntityInfo> importableEntitiesInfo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getFakeObjectForIdGeneration(Class<?> entityClass)
Provides fake object required for Hibernate to use the proper id generator
-
-
-
Constructor Detail
-
FakeObjectProvider
public FakeObjectProvider(Collection<ExportableEntityInfo> importableEntitiesInfo) throws BackupRestoreException
- Throws:
BackupRestoreException
-
-
Method Detail
-
getFakeObjectForIdGeneration
public Object getFakeObjectForIdGeneration(Class<?> entityClass)
Provides fake object required for Hibernate to use the proper id generator- Parameters:
entityClass
- Class whose id we need to generate- Returns:
- fake object required for Hibernate to use the proper id generator
-
-