Commit 2119f2de authored by Jie Yuan's avatar Jie Yuan
Browse files

add site statistic info

parent 779bba27
package svmon.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;
@Table(name = "site_statistics")
public class SiteStatistics {
@Column(name = "siteSource")
private String siteSource;
@Column(name = "total_no")
private int totalNo;
public String getSiteSource() {
return siteSource;
public void setSiteSource(String siteSource) {
this.siteSource = siteSource;
public int getTotalNo() {
return totalNo;
public void setTotalNo(int totalNo) {
this.totalNo = totalNo;
\ No newline at end of file
package svmon.repository;
import java.util.Optional;
import org.springframework.stereotype.Repository;
import svmon.model.SiteStatistics;
public interface SiteStatisticsRepository extends JpaRepository<SiteStatistics, Long> {
public SiteStatistics findBySiteSource(String siteSource);
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment