No Lazy Collection initialization
This commit is contained in:
parent
11577cc4f0
commit
92eaade050
|
@ -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>();
|
||||
|
||||
|
|
|
@ -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());
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue