WithIdAndStatusJpaEntity.java 667 B

1234567891011121314151617181920212223242526272829303132
  1. package cn.com.qmth.examcloud.web.jpa;
  2. import javax.persistence.GeneratedValue;
  3. import javax.persistence.GenerationType;
  4. import javax.persistence.Id;
  5. import javax.persistence.MappedSuperclass;
  6. /**
  7. * ID and status
  8. *
  9. * @author WANGWEI
  10. * @date 2019年2月20日
  11. * @Copyright (c) 2018-? http://qmth.com.cn All Rights Reserved.
  12. */
  13. @MappedSuperclass
  14. public abstract class WithIdAndStatusJpaEntity extends WithStatusJpaEntity {
  15. private static final long serialVersionUID = 2909770208688213445L;
  16. @Id
  17. @GeneratedValue(strategy = GenerationType.IDENTITY)
  18. private Long id;
  19. public Long getId() {
  20. return id;
  21. }
  22. public void setId(Long id) {
  23. this.id = id;
  24. }
  25. }