CounterBean.java
资源名称:cindyblog.rar [点击查看]
上传用户:cdpainuo
上传日期:2022-07-12
资源大小:5257k
文件大小:1k
源码类别:
Jsp/Servlet
开发平台:
Java
- package com.appspot.cindyblog.pojo;
- import javax.jdo.annotations.IdGeneratorStrategy;
- import javax.jdo.annotations.Persistent;
- import javax.jdo.annotations.PrimaryKey;
- public class CounterBean {
- @PrimaryKey
- @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
- private Long id;
- @Persistent
- private String name;
- @Persistent
- private int count;
- public CounterBean() {
- super();
- }
- public CounterBean(String name, int count) {
- super();
- this.name = name;
- this.count = count;
- }
- public Long getId() {
- return id;
- }
- public void setId(Long id) {
- this.id = id;
- }
- public String getName() {
- return name;
- }
- public void setName(String name) {
- this.name = name;
- }
- public int getCount() {
- return count;
- }
- public void setCount(int count) {
- this.count = count;
- }
- }