fixed hibernate bug with fetchType EAGER
This commit is contained in:
@@ -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()
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user