model properties
This commit is contained in:
		
							parent
							
								
									c238825e92
								
							
						
					
					
						commit
						0c640ad178
					
				@ -10,7 +10,6 @@ import java.util.Date;
 | 
			
		||||
@Table(name = "META_SENSOR_ITEM", schema = "public")
 | 
			
		||||
public class MetaSensorItem {
 | 
			
		||||
    private int id;
 | 
			
		||||
    private MetaSensorItemType itemType;
 | 
			
		||||
    private String key;
 | 
			
		||||
    private String name;
 | 
			
		||||
    private Date createDate;
 | 
			
		||||
@ -25,25 +24,6 @@ public class MetaSensorItem {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
//    @Column(name = "TYPE_ID", nullable = false)
 | 
			
		||||
//    public short getTypeId() {
 | 
			
		||||
//        return typeId;
 | 
			
		||||
//    }
 | 
			
		||||
//
 | 
			
		||||
//    public void setTypeId(short typeId) {
 | 
			
		||||
//        this.typeId = typeId;
 | 
			
		||||
//    }
 | 
			
		||||
 | 
			
		||||
    @ManyToOne
 | 
			
		||||
    @JoinColumn(name = "TYPE_ID", nullable = false)
 | 
			
		||||
    public MetaSensorItemType getItemType() {
 | 
			
		||||
        return itemType;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public void setItemType(MetaSensorItemType itemType) {
 | 
			
		||||
        this.itemType = itemType;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    @Column(name = "KEY", nullable = true, length = 100)
 | 
			
		||||
    public String getKey() {
 | 
			
		||||
        return key;
 | 
			
		||||
 | 
			
		||||
@ -22,6 +22,7 @@ public class Sensor {
 | 
			
		||||
    private Target target;
 | 
			
		||||
    private MetaCrawler crawler;
 | 
			
		||||
    private String crawlerInputItems;
 | 
			
		||||
    private short itemCount = 0;
 | 
			
		||||
 | 
			
		||||
    @Id
 | 
			
		||||
    @GeneratedValue(strategy= GenerationType.IDENTITY)
 | 
			
		||||
@ -92,4 +93,14 @@ public class Sensor {
 | 
			
		||||
        this.crawlerInputItems = crawlerInputItems;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    @Column(name = "ITEM_COUNT", nullable = false)
 | 
			
		||||
    public short getItemCount() {
 | 
			
		||||
        return itemCount;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public void setItemCount(short itemCount) {
 | 
			
		||||
        this.itemCount = itemCount;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user