diff --git a/pom.xml b/pom.xml index 6da4c4b..47e3bb0 100644 --- a/pom.xml +++ b/pom.xml @@ -50,7 +50,7 @@ com.loafle.overflow commons-java - 1.0.10-SNAPSHOT + 1.0.12-SNAPSHOT diff --git a/src/main/java/com/loafle/overflow/central/module/noauthprobe/service/CentralNoAuthProbeService.java b/src/main/java/com/loafle/overflow/central/module/noauthprobe/service/CentralNoAuthProbeService.java index 013b83c..e6cacf8 100644 --- a/src/main/java/com/loafle/overflow/central/module/noauthprobe/service/CentralNoAuthProbeService.java +++ b/src/main/java/com/loafle/overflow/central/module/noauthprobe/service/CentralNoAuthProbeService.java @@ -197,7 +197,7 @@ public class CentralNoAuthProbeService implements NoAuthProbeService { private void newProbeHost(InfraHost infraHost, Probe probe) throws OverflowException { ProbeHost probeHost = new ProbeHost(); - probeHost.setHost(infraHost); + probeHost.setInfraHost(infraHost); probeHost.setProbe(probe); this.probeHostService.regist(probeHost); diff --git a/src/main/resources/local/database.properties b/src/main/resources/local/database.properties index a04336a..3a0ac6c 100644 --- a/src/main/resources/local/database.properties +++ b/src/main/resources/local/database.properties @@ -8,4 +8,4 @@ jpa.database=postgresql jpa.hibernate.ddl-auto=create #jpa.hibernate.ddl-auto=update jpa.hibernate.naming-strategy=org.hibernate.cfg.ImprovedNamingStrategy -jpa.show-sql=true +jpa.show-sql=false diff --git a/src/main/resources/local/init.sql b/src/main/resources/local/init.sql index 393db65..656822d 100644 --- a/src/main/resources/local/init.sql +++ b/src/main/resources/local/init.sql @@ -978,7 +978,7 @@ INSERT INTO public.infra_os_application ("name",id,infra_os_id) VALUES ( INSERT INTO public.infra_os_daemon ("name",id,infra_os_id) VALUES ( 'Apache',6,2); -insert into public.probe_host (HOST_ID, PROBE_ID) values (3, 1); +insert into public.probe_host (infra_host_id, PROBE_ID) values (3, 1); INSERT INTO public.target (create_date,description,display_name,sensor_count, infra_id) VALUES ( '2017-07-27 20:18:09.555','Machine Target','ghost target',0, 1);