com.itcoon.common.jpa.base.IdPO Maven / Gradle / Ivy
package com.itcoon.common.jpa.base;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
import java.io.Serializable;
/**
* @author Miaoxia Yu
* @date 2020-11-19
*/
@MappedSuperclass
public abstract class IdPO implements Serializable {
private static final long serialVersionUID = 4861837900446269771L;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy