No Lazy Collection initialization

This commit is contained in:
Fabio Sinibaldi 2020-11-25 13:05:13 +01:00
parent 11577cc4f0
commit 92eaade050
3 changed files with 7 additions and 2 deletions

View File

@ -7,6 +7,9 @@ import javax.persistence.DiscriminatorValue;
import javax.persistence.ElementCollection;
import javax.persistence.Entity;
import org.hibernate.annotations.LazyCollection;
import org.hibernate.annotations.LazyCollectionOption;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
@ -25,6 +28,7 @@ public class GeoServerContent extends PersistedContent{
private String geoserverHostName;
private String geoserverPath;
@LazyCollection(LazyCollectionOption.FALSE)
@ElementCollection(targetClass=String.class)
private List<String> fileNames=new ArrayList<String>();

View File

@ -20,7 +20,7 @@ public class CheckContextConfiguration {
TokenSetter.set("/gcube/devNext/NextNext");
// TokenSetter.set("/pred4s/preprod/preVRE");
// TokenSetter.set("/d4science.research-infrastructures.eu/D4OS/GeoNA-Prototype");
TokenSetter.set("/d4science.research-infrastructures.eu/D4OS/GeoNA-Prototype");
// System.out.println("Checking for internal .. ");
// ConcessioneManager manager=ManagerFactory.getByRecord(new Concessione());

View File

@ -25,7 +25,8 @@ import com.fasterxml.jackson.core.JsonProcessingException;
public class UseCases {
public static void main(String[] args) throws FileNotFoundException, IOException {
TokenSetter.set("/gcube/devNext/NextNext");
TokenSetter.set("/gcube/devsec/devVRE");
// TokenSetter.set("/pred4s/preprod/preVRE");
try {