如何创建类似StandardEntity的问题?

我模仿StandardEntity写了一个自己的基础实体BaseEntity,只是没有实现Versioned和SoftDelete接口,但是我发现我的实体保存的时候CREATED_BY、CREATE_TS等字段系统没有写入值?请问还有什么地方需要设置吗?
代码如下:

@MappedSuperclass
@MetaClass(name = "magic_BaseEntity")
public abstract class BaseEntity extends BaseUuidEntity implements Creatable, Updatable {
    @Column(name = "CREATE_TS")
    protected Date createTs;

    @Column(name = "CREATED_BY", length = 50)
    protected String createdBy;

    @Column(name = "UPDATE_TS")
    protected Date updateTs;

    @Column(name = "UPDATED_BY", length = 50)
    protected String updatedBy;

    @Transient
    @MetaProperty
    protected BaseEntity self=this;

    @Override
    public Date getCreateTs() {
        return createTs;
    }

    @Override
    public void setCreateTs(Date createTs) {
        this.createTs = createTs;
    }

    @Override
    public String getCreatedBy() {
        return createdBy;
    }

    @Override
    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    @Override
    public Date getUpdateTs() {
        return updateTs;
    }

    @Override
    public void setUpdateTs(Date updateTs) {
        this.updateTs = updateTs;
    }

    @Override
    public String getUpdatedBy() {
        return updatedBy;
    }

    @Override
    public void setUpdatedBy(String updatedBy) {
        this.updatedBy = updatedBy;
    }

    public BaseEntity getSelf() {
        return self;
    }
}

找到问题了,没加到persistence.xml。