fixed probe

authorized -> authorize
This commit is contained in:
snoop 2017-07-28 11:02:17 +09:00
parent bee7eda0f0
commit 9f85062ce7
3 changed files with 14 additions and 14 deletions

View File

@ -48,8 +48,8 @@ status (Meta)
private int sensorCount; private int sensorCount;
private String displayName; private String displayName;
private String cidr; private String cidr;
private Date authorizedDate; private Date authorizeDate;
private Member authorizedMember; private Member authorizeMember;
private InfraHost infraHost; private InfraHost infraHost;
@Id @Id
@ -159,23 +159,23 @@ status (Meta)
} }
@Temporal(TemporalType.TIMESTAMP) @Temporal(TemporalType.TIMESTAMP)
@Column(name = "AUTHORIZED_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false) @Column(name = "AUTHORIZE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
public Date getAuthorizedDate() { public Date getAuthorizeDate() {
return authorizedDate; return authorizeDate;
} }
public void setAuthorizedDate(Date authorizedDate) { public void setAuthorizeDate(Date authorizeDate) {
this.authorizedDate = authorizedDate; this.authorizeDate = authorizeDate;
} }
@ManyToOne @ManyToOne
@JoinColumn(name = "MEMBER_ID", nullable = false) @JoinColumn(name = "AUTHORIZE_MEMBER_ID", nullable = false)
public Member getAuthorizedMember() { public Member getAuthorizeMember() {
return authorizedMember; return authorizeMember;
} }
public void setAuthorizedMember(Member authorizedMember) { public void setAuthorizeMember(Member authorizeMember) {
this.authorizedMember = authorizedMember; this.authorizeMember = authorizeMember;
} }
@ManyToOne @ManyToOne

View File

@ -416,7 +416,7 @@ INSERT INTO public.infra (id,child_id,create_date,type_id) VALUES (
INSERT INTO public.infra (id,child_id,create_date,type_id) VALUES ( INSERT INTO public.infra (id,child_id,create_date,type_id) VALUES (
3,1,'2017-07-27 20:10:41.506',2); 3,1,'2017-07-27 20:10:41.506',2);
INSERT INTO public.probe (id,authorized_date,cidr,create_date,description,display_name,encryption_key,probe_key,sensor_count,target_count,member_id,domain_id,host_id,status) VALUES ( INSERT INTO public.probe (id,authorize_date,cidr,create_date,description,display_name,encryption_key,probe_key,sensor_count,target_count,authorize_member_id,domain_id,host_id,status) VALUES (
1,'2017-07-27 20:01:28.513','192.168.1.0/24','2017-07-27 20:01:28.513','snoop probe','test probe','8c51fa9c5bcc11e7980a080027658d13','899fdd145bcc11e7b611080027658d13',0,0,1,1,1,1); 1,'2017-07-27 20:01:28.513','192.168.1.0/24','2017-07-27 20:01:28.513','snoop probe','test probe','8c51fa9c5bcc11e7980a080027658d13','899fdd145bcc11e7b611080027658d13',0,0,1,1,1,1);
INSERT INTO public.target (id,create_date,description,display_name) VALUES ( INSERT INTO public.target (id,create_date,description,display_name) VALUES (

View File

@ -61,7 +61,7 @@ public class ProbeServiceTest {
Member member = new Member(); Member member = new Member();
member.setId(1l); member.setId(1l);
probe.setAuthorizedMember(member); probe.setAuthorizeMember(member);
InfraHost infraHost = new InfraHost(); InfraHost infraHost = new InfraHost();
infraHost.setId(1); infraHost.setId(1);