class StorageJetCache extends SimpleJpaRepository<E,PK> implements IStorage<PK,E> {

    @Override
    @Transactional(rollbackFor = Exception.class)
    public E getOrCreate(PK id, EntityCreator<PK, E> entityCreator) {
        Preconditions.checkNotNull(id,"id不能为null");
        E e = get(id);
        if (e!=null){
            return e;
        }else {
            E entityCreated = entityCreator.create(id);
            return doInsert(entityCreated);
        }
    }

    public  StorageJetCache(JpaEntityInformation<E, ?> entityInformation, EntityManager entityManager);

}