src/main/java/org/edgegallery/appstore/infrastructure/persistence/apackage/AppReleasePo.java
public Release toDomainModel() {
        BasicInfo basicInfo = new BasicInfo();
        basicInfo.setAppName(appName);
        basicInfo.setProvider(provider);
        basicInfo.setVersion(version);
        basicInfo.setContact(contact);
        basicInfo.setFileStructure(fileStructure);
        basicInfo.setMarkDownContent(markDownContent);
        basicInfo.setAppDesc(shortDesc);
        Release release = new Release();

        if (demoVideoAddress != null) {
            release.setDemoVideo(new AFile(new File(demoVideoAddress).getName(), demoVideoAddress));
        }
        release.setPackageFile(new AFile(new File(packageAddress).getName(), packageAddress));
        release.getPackageFile().setFileSize(new File(packageAddress).length());
        release.setAppId(appId);
        release.setPackageId(packageId);
        release.setIcon(new AFile(new File(iconAddress).getName(), iconAddress));
        release.setCreateTime(createTime);
        release.setShowType(showType);
        release.setAffinity(affinity);
        release.setApplicationType(applicationType);
        release.setIndustry(industry);
        release.setUser(new User(userId, userName));
        release.setAppBasicInfo(basicInfo);
        release.setStatus(EnumPackageStatus.valueOf(status));
        release.setTestTaskId(testTaskId);
        release.setDeployMode(deployMode);
        release.setAppInstanceId(appInstanceId);
        release.setExperienceAble(experienceAble);
        return release;
    }
/**
     * transfer to Release.
     *
     * @return Release
     */
transfer to Release.
@return Release
transfer to Release . @return Release
public Release toDomainModel() {
        BasicInfo basicInfo = new BasicInfo();
        basicInfo.setAppName(appName);
        basicInfo.setProvider(provider);
        basicInfo.setVersion(version);
        basicInfo.setContact(contact);
        basicInfo.setFileStructure(fileStructure);
        basicInfo.setMarkDownContent(markDownContent);
        basicInfo.setAppDesc(shortDesc);
        Release release = new Release();
        if (demoVideoAddress != null) {
            release.setDemoVideo(new AFile(new File(demoVideoAddress).getName(), demoVideoAddress));
        }
        release.setPackageFile(new AFile(new File(packageAddress).getName(), packageAddress));
        release.getPackageFile().setFileSize(new File(packageAddress).length());
        release.setAppId(appId);
        release.setPackageId(packageId);
        release.setIcon(new AFile(new File(iconAddress).getName(), iconAddress));
        release.setCreateTime(createTime);
        release.setShowType(showType);
        release.setAffinity(affinity);
        release.setApplicationType(applicationType);
        release.setIndustry(industry);
        release.setUser(new User(userId, userName));
        release.setAppBasicInfo(basicInfo);
        release.setStatus(EnumPackageStatus.valueOf(status));
        release.setTestTaskId(testTaskId);
        release.setDeployMode(deployMode);
        release.setAppInstanceId(appInstanceId);
        release.setExperienceAble(experienceAble);
        return release;
    }
public Release toDomainModel ( ) { BasicInfo basicInfo = new BasicInfo ( ) ; basicInfo . setAppName ( appName ) ; basicInfo . setProvider ( provider ) ; basicInfo . setVersion ( version ) ; basicInfo . setContact ( contact ) ; basicInfo . setFileStructure ( fileStructure ) ; basicInfo . setMarkDownContent ( markDownContent ) ; basicInfo . setAppDesc ( shortDesc ) ; Release release = new Release ( ) ; if ( demoVideoAddress != null ) { release . setDemoVideo ( new AFile ( new File ( demoVideoAddress ) . getName ( ) , demoVideoAddress ) ) ; } release . setPackageFile ( new AFile ( new File ( packageAddress ) . getName ( ) , packageAddress ) ) ; release . getPackageFile ( ) . setFileSize ( new File ( packageAddress ) . length ( ) ) ; release . setAppId ( appId ) ; release . setPackageId ( packageId ) ; release . setIcon ( new AFile ( new File ( iconAddress ) . getName ( ) , iconAddress ) ) ; release . setCreateTime ( createTime ) ; release . setShowType ( showType ) ; release . setAffinity ( affinity ) ; release . setApplicationType ( applicationType ) ; release . setIndustry ( industry ) ; release . setUser ( new User ( userId , userName ) ) ; release . setAppBasicInfo ( basicInfo ) ; release . setStatus ( EnumPackageStatus . valueOf ( status ) ) ; release . setTestTaskId ( testTaskId ) ; release . setDeployMode ( deployMode ) ; release . setAppInstanceId ( appInstanceId ) ; release . setExperienceAble ( experienceAble ) ; return release ; }
transfer to Release.
transfer to Release .