.
This commit is contained in:
		
							parent
							
								
									dcea99dc21
								
							
						
					
					
						commit
						60468bdc8f
					
				| @ -1,5 +1,6 @@ | ||||
| package com.loafle.bridge.discoveryport; | ||||
| 
 | ||||
| import com.loafle.bridge.discoveryhost.entity.DiscoveryHost; | ||||
| import com.loafle.bridge.discoveryport.type.PortType; | ||||
| import com.loafle.bridge.discoveryservice.entity.DiscoveryService; | ||||
| 
 | ||||
| @ -14,16 +15,16 @@ public class DiscoveryPort { | ||||
|     @GeneratedValue(strategy = GenerationType.AUTO) | ||||
|     private long id; | ||||
| 
 | ||||
| //    @ManyToOne | ||||
| //    @JoinColumn(name = "HOST_ID", nullable = false) | ||||
| //    private DiscoveryHost host; | ||||
| //public DiscoveryHost getHost() { | ||||
| //    return host; | ||||
| //} | ||||
| // | ||||
| //    public void setHost(DiscoveryHost host) { | ||||
| //        this.host = host; | ||||
| //    } | ||||
|     @ManyToOne | ||||
|     @JoinColumn(name = "HOST_ID", nullable = false) | ||||
|     private DiscoveryHost host; | ||||
|     public DiscoveryHost getHost() { | ||||
|         return host; | ||||
|     } | ||||
| 
 | ||||
|     public void setHost(DiscoveryHost host) { | ||||
|         this.host = host; | ||||
|     } | ||||
|     @Column(nullable = false) | ||||
|     @Enumerated(EnumType.STRING) | ||||
|     private PortType portType; | ||||
| @ -51,7 +52,6 @@ public class DiscoveryPort { | ||||
|     @Column(columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", nullable = false, insertable = false) | ||||
|     private Date updateDate; | ||||
| 
 | ||||
| 
 | ||||
|     public DiscoveryPort() {} | ||||
| 
 | ||||
|     public DiscoveryPort(PortType type, short portNumber) { | ||||
|  | ||||
| @ -16,7 +16,8 @@ public class ServiceScanHistory { | ||||
|     @GeneratedValue(strategy = GenerationType.AUTO) | ||||
|     private long id; | ||||
| 
 | ||||
|     @Column(columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", nullable = false, insertable = false, updatable = false) | ||||
|     @Column(nullable = false, insertable = false, updatable = false) | ||||
|     @Temporal(TemporalType.TIMESTAMP) | ||||
|     private Date createDate; | ||||
| 
 | ||||
|     @ManyToOne(fetch = FetchType.LAZY) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user