TypeBean.java.svn-base
上传用户:cdpainuo
上传日期:2022-07-12
资源大小:5257k
文件大小:1k
源码类别:

Jsp/Servlet

开发平台:

Java

  1. package com.appspot.cindyblog.pojo;
  2. import javax.jdo.annotations.IdGeneratorStrategy;
  3. import javax.jdo.annotations.IdentityType;
  4. import javax.jdo.annotations.PersistenceCapable;
  5. import javax.jdo.annotations.Persistent;
  6. import javax.jdo.annotations.PrimaryKey;
  7. @PersistenceCapable(identityType = IdentityType.APPLICATION)
  8. public class TypeBean  implements BaseBean{
  9. @PrimaryKey    
  10. @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
  11. private Long id;
  12. @Persistent
  13. private String name;
  14. @Persistent
  15. private int typeCount;
  16. public TypeBean(String name, int typeCount) {
  17. super();
  18. this.name = name;
  19. this.typeCount = typeCount;
  20. }
  21. public Long getId() {
  22. return id;
  23. }
  24. public void setId(Long id) {
  25. this.id = id;
  26. }
  27. public String getName() {
  28. return name;
  29. }
  30. public void setName(String name) {
  31. this.name = name;
  32. }
  33. public int getTypeCount() {
  34. return typeCount;
  35. }
  36. public void setTypeCount(int typeCount) {
  37. this.typeCount = typeCount;
  38. }
  39. }