fixed hibernate bug with fetchType EAGER

This commit is contained in:
2016-09-03 16:22:22 +02:00
parent cfd6dd4ae5
commit 3d4b827fca
2 changed files with 9 additions and 9 deletions

View File

@@ -45,7 +45,7 @@ dependencies {
task deployWildfly(dependsOn: 'war') << {
def username = 'admin', password = '123456'
def sout = new StringBuffer(), serr = new StringBuffer()
def cmd = sprintf("/opt/wildfly/bin/jboss-cli.sh --connect --user=%s --password=%s --command=\'deploy %s --force\'", username, password, tasks['war'].archivePath)
def cmd = sprintf("/opt/wildfly/bin/jboss-cli.sh --controller=localhost:9990 --connect --user=%s --password=%s --command=\'deploy %s --force\'", username, password, tasks['war'].archivePath)
def proc = cmd.execute()
proc.consumeProcessOutput(sout, serr)
proc.waitFor()

View File

@@ -46,28 +46,28 @@ public class PkgData
public String fileName;
@ElementCollection(fetch = FetchType.EAGER)
@ElementCollection(fetch = FetchType.LAZY)
public List<String> replaces;
@ElementCollection(fetch = FetchType.EAGER)
@ElementCollection(fetch = FetchType.LAZY)
public List<String> conflict;
@ElementCollection(fetch = FetchType.EAGER)
@ElementCollection(fetch = FetchType.LAZY)
public List<String> provides;
@ElementCollection(fetch = FetchType.EAGER)
@ElementCollection(fetch = FetchType.LAZY)
public List<String> depend;
@ElementCollection(fetch = FetchType.EAGER)
@ElementCollection(fetch = FetchType.LAZY)
public List<String> optdepend;
@ElementCollection(fetch = FetchType.EAGER)
@ElementCollection(fetch = FetchType.LAZY)
public List<String> makedepend;
@ElementCollection(fetch = FetchType.EAGER)
@ElementCollection(fetch = FetchType.LAZY)
public List<String> makeopkgopt;
@ElementCollection(fetch = FetchType.EAGER)
@ElementCollection(fetch = FetchType.LAZY)
public List<String> backup;
@Temporal(TemporalType.TIMESTAMP)