Class EntitySerializer


  • @Deprecated
    public final class EntitySerializer
    extends Object
    Deprecated.
    In the future each domain should provide its own import/export mechanism.
    Utility class for serializing entities to files (deprecated).
    Since:
    09.12.25
    Author:
    Norman Lorenz
    • Method Detail

      • serialize

        public static void serialize​(de.xima.cmn.dao.interfaces.IEntity<Long> entity,
                                     File outDir,
                                     org.jasypt.encryption.StringEncryptor encryptor)
                              throws Exception
        Deprecated.
        Serializes the given entity to a file in the given output directory.
        Parameters:
        entity - The entity to serialize.
        outDir - The output directory.
        encryptor - The encryptor to use for sensitive data.
        Throws:
        Exception - If an error occurs during serialization or file writing.