jpa configuration

This commit is contained in:
Fabio Sinibaldi 2020-10-23 17:45:18 +02:00
parent 0675d3b20e
commit 89ff09e630
2 changed files with 29 additions and 2 deletions

View File

@ -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());

View File

@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.1" xmlns="http://xmlns.jcp.org/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd">
<persistence-unit name="gna_internal_db" transaction-type="RESOURCE_LOCAL">
<class>org.gcube.application.geoportal.model.Record</class>
<!-- Concessioni -->
<class>org.gcube.application.geoportal.model.concessioni.Concessione</class>
<class>org.gcube.application.geoportal.model.concessioni.LayerConcessione</class>
<class>org.gcube.application.geoportal.model.concessioni.RelazioneScavo</class>
<!-- Content -->
<class>org.gcube.application.geoportal.model.content.AssociatedContent</class>
<class>org.gcube.application.geoportal.model.content.GeoServerContent</class>
<class>org.gcube.application.geoportal.model.content.OtherContent</class>
<class>org.gcube.application.geoportal.model.content.PersistedContent</class>
<class>org.gcube.application.geoportal.model.content.UploadedImage</class>
<class>org.gcube.application.geoportal.model.content.WorkspaceContent</class>
<!-- GIS -->
<class>org.gcube.application.geoportal.model.gis.ShapeFileLayerDescriptor</class>
<class>org.gcube.application.geoportal.model.gis.SDILayerDescriptor</class>
</persistence-unit>
</persistence>