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