
nz.net.osnz.common.dao.bean.BaseEntity.groovy Maven / Gradle / Ivy
package nz.net.osnz.common.dao.bean
import groovy.transform.CompileStatic
import javax.persistence.Column
import javax.persistence.GeneratedValue
import javax.persistence.GenerationType
import javax.persistence.Id
import javax.persistence.MappedSuperclass
/**
* @author Kefeng Deng ([email protected])
*/
@MappedSuperclass
@CompileStatic
public abstract class BaseEntity extends BaseBean {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Column(name = 'ID')
Long id
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy