spring mvc

  • E3_426072
    了解作者
  • 31.2MB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-05-31 02:36
    上传日期
spring mvc框架代码实例,测试可用。
spring.zip
内容介绍
package com.mvc.entity; import java.util.Set; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.OneToMany; import javax.persistence.Table; @Entity @Table(name = "projectchart") public class ProjectChart { private String chartId; private String chartTitle; private int sortId; private int chartType; private String projectId; private String category; private int horiValueType; private int verticalValueType; private double warningCriticalValue; private double dangerCriticalValue; private int criticalValueTrend; private String subProjectName; private int DataType; //one-to-many private Set<ProjectChartData> projectChartData; //getter setter @Id @Column(name = "ChartID") public String getChartId() { return chartId; } public void setChartId(String chartId) { this.chartId = chartId; } @Column(name = "ChartTitle") public String getChartTitle() { return chartTitle; } public void setChartTitle(String chartTitle) { this.chartTitle = chartTitle; } @Column(name = "SortID") public int getSortId() { return sortId; } public void setSortId(int sortId) { this.sortId = sortId; } @Column(name = "ChartType") public int getChartType() { return chartType; } public void setChartType(int chartType) { this.chartType = chartType; } @Column(name = "ProjectID") public String getProjectId() { return projectId; } public void setProjectId(String projectId) { this.projectId = projectId; } @Column(name = "Category") public String getCategory() { return category; } public void setCategory(String category) { this.category = category; } @Column(name = "HoriValueType") public int getHoriValueType() { return horiValueType; } public void setHoriValueType(int horiValueType) { this.horiValueType = horiValueType; } @Column(name = "VerticalValueType") public int getVerticalValueType() { return verticalValueType; } public void setVerticalValueType(int verticalValueType) { this.verticalValueType = verticalValueType; } @Column(name = "WarningCriticalValue") public double getWarningCriticalValue() { return warningCriticalValue; } public void setWarningCriticalValue(double warningCriticalValue) { this.warningCriticalValue = warningCriticalValue; } @Column(name = "DangerCriticalValue") public double getDangerCriticalValue() { return dangerCriticalValue; } public void setDangerCriticalValue(double dangerCriticalValue) { this.dangerCriticalValue = dangerCriticalValue; } @Column(name = "CriticalValueTrend") public int getCriticalValueTrend() { return criticalValueTrend; } public void setCriticalValueTrend(int criticalValueTrend) { this.criticalValueTrend = criticalValueTrend; } @Column(name = "SubProjectName") public String getSubProjectName() { return subProjectName; } public void setSubProjectName(String subProjectName) { this.subProjectName = subProjectName; } @Column(name = "DataType") public int getDataType() { return DataType; } public void setDataType(int dataType) { DataType = dataType; } @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER) @JoinColumn(name = "ChartID") public Set<ProjectChartData> getProjectChartData() { return projectChartData; } public void setProjectChartData(Set<ProjectChartData> projectChartData) { this.projectChartData = projectChartData; } }
评论
    相关推荐
    • spring mvc
      spring mvc简单实例
    • spring mvc
      spring mvc
    • Spring MVC
      Spring MVC使用注解配置。。。。。。。。。。。。。。。。。。。。。
    • spring mvc
      本代码是spring mvc的一个小demo 只是完成mvc的一个实例。没有复杂的业务逻辑 本demo只是适合刚学习Spring mvc的同行
    • spring mvc
      spring mvc spring mvcspring mvc
    • Spring MVC
      一个简单的spring mvc登录案例,采用的是annotation方式。
    • spring mvc
      spring mvc 开发所需要的全部工具、jar包
    • spring mvc
      这是一个spring mvc3.04例子。这个例子简单,弹性好,易于扩展。好理解。是我在开发时项目例子。
    • spring mvc
      spring mvc最小代码。spring mvc最小代码。spring mvc最小代码。spring mvc最小代码。
    • SIM800C_MQTT.rar
      使用SIM800C模块,使用MQTT协议,连接中国移动onenet平台,能实现数据的订阅、发布、存储等