package de.factoryfx.factory.datastorage;

import de.factoryfx.factory.FactoryBase;

public class FactoryAndStorageMetadata<T extends FactoryBase<?,?>> {
    public final T root;
    public final StoredFactoryMetadata metadata;

    public FactoryAndStorageMetadata(T root, StoredFactoryMetadata metadata) {
        this.root = root;
        this.metadata = metadata;
    }

    public FactoryAndStorageMetadata<T> copy(){
        return new FactoryAndStorageMetadata<>(root.<T>copy(),metadata);
    }
}

@@ -38,16 +38,125 @@
 age;%0D%0A%0D%0A
+import com.fasterxml.jackson.annotation.JsonCreator;%0D%0Aimport com.fasterxml.jackson.annotation.JsonProperty;%0D%0A
 import d
@@ -189,16 +189,16 @@
 yBase;%0D%0A
-
 %0D%0Apublic
@@ -335,24 +335,42 @@
 etadata;%0D%0A%0D%0A
+    @JsonCreator%0D%0A
     public F
@@ -398,16 +398,63 @@
 ata(
-T root, 
+@JsonProperty(%22root%22) T root, @JsonProperty(%22metadata%22)
 Stor

fix json externalization