package cn.com.qmth.examcloud.web.jpa; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.MappedSuperclass; /** * ID and status * * @author WANGWEI * @date 2019年2月20日 * @Copyright (c) 2018-? http://qmth.com.cn All Rights Reserved. */ @MappedSuperclass public abstract class WithIdAndStatusJpaEntity extends WithStatusJpaEntity { private static final long serialVersionUID = 2909770208688213445L; @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; public Long getId() { return id; } public void setId(Long id) { this.id = id; } }