-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
51 additions
and
1 deletion.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
src/main/java/com/github/ontio/explorer/statistics/mapper/BadNodeMapper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.github.ontio.explorer.statistics.mapper; | ||
|
||
import com.github.ontio.explorer.statistics.model.BadNode; | ||
import org.springframework.stereotype.Repository; | ||
import tk.mybatis.mapper.common.Mapper; | ||
|
||
|
||
@Repository | ||
public interface BadNodeMapper extends Mapper<BadNode> { | ||
|
||
} |
27 changes: 27 additions & 0 deletions
27
src/main/java/com/github/ontio/explorer/statistics/model/BadNode.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package com.github.ontio.explorer.statistics.model; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
import javax.persistence.Column; | ||
import javax.persistence.GeneratedValue; | ||
import javax.persistence.Id; | ||
import javax.persistence.Table; | ||
|
||
@Data | ||
@Builder | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@Table(name = "tbl_bad_node") | ||
public class BadNode { | ||
@Id | ||
@GeneratedValue(generator = "JDBC") | ||
private Integer id; | ||
|
||
@Column(name = "public_key") | ||
private String publicKey; | ||
|
||
private Integer cycle; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters