diff --git a/src/main/java/org/gcube/application/geoportal/model/content/PersistedContent.java b/src/main/java/org/gcube/application/geoportal/model/content/PersistedContent.java index d8164da..05cd0dc 100644 --- a/src/main/java/org/gcube/application/geoportal/model/content/PersistedContent.java +++ b/src/main/java/org/gcube/application/geoportal/model/content/PersistedContent.java @@ -39,8 +39,8 @@ public abstract class PersistedContent { builder.append("PersistedContent [id="); builder.append(id); if(associated==null) { - builder.append(", associated="); - builder.append(associated); + builder.append(", associated="); + builder.append(associated); }else { builder.append(", OWNER-associated-id="); builder.append(associated.getId()); diff --git a/src/main/resources/META-INF/persistence.xml b/src/main/resources/META-INF/persistence.xml new file mode 100644 index 0000000..fc45f4a --- /dev/null +++ b/src/main/resources/META-INF/persistence.xml @@ -0,0 +1,27 @@ + + + + + org.gcube.application.geoportal.model.Record + + org.gcube.application.geoportal.model.concessioni.Concessione + org.gcube.application.geoportal.model.concessioni.LayerConcessione + org.gcube.application.geoportal.model.concessioni.RelazioneScavo + + + org.gcube.application.geoportal.model.content.AssociatedContent + org.gcube.application.geoportal.model.content.GeoServerContent + org.gcube.application.geoportal.model.content.OtherContent + org.gcube.application.geoportal.model.content.PersistedContent + org.gcube.application.geoportal.model.content.UploadedImage + org.gcube.application.geoportal.model.content.WorkspaceContent + + + org.gcube.application.geoportal.model.gis.ShapeFileLayerDescriptor + org.gcube.application.geoportal.model.gis.SDILayerDescriptor + + + + \ No newline at end of file