WithStatusJpaEntity.java 831 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. package cn.com.qmth.examcloud.web.jpa;
  2. import javax.persistence.Column;
  3. import javax.persistence.MappedSuperclass;
  4. /**
  5. * status
  6. *
  7. * @author WANGWEI
  8. * @date 2019年2月20日
  9. * @Copyright (c) 2018-? http://qmth.com.cn All Rights Reserved.
  10. */
  11. @MappedSuperclass
  12. public abstract class WithStatusJpaEntity extends JpaEntity {
  13. private static final long serialVersionUID = -5204331536862187353L;
  14. /**
  15. * 是否可用
  16. */
  17. @Column(nullable = false)
  18. private Boolean enabled;
  19. /**
  20. * 是否被销毁
  21. */
  22. @Column(nullable = false)
  23. private Boolean destroyed;
  24. public Boolean getEnabled() {
  25. return enabled;
  26. }
  27. public void setEnabled(Boolean enabled) {
  28. this.enabled = enabled;
  29. }
  30. public Boolean getDestroyed() {
  31. return destroyed;
  32. }
  33. public void setDestroyed(Boolean destroyed) {
  34. this.destroyed = destroyed;
  35. }
  36. }