agave-jobs/jobs-core/src/test/java/org/iplantc/service/jobs/util/DomainSetup.java
/**
     * persist a single Software domain object using a json string to the database
     * @param json
     */
persist a single Software domain object using a json string to the database
@param json
persist a single Software domain object using a json string to the database @param json
public void persistSingleSoftwareEntry(String json) {
        JSONObject softwareJson;
        try {
            softwareJson =new JSONObject(json);
            Software software = Software.fromJSON(softwareJson,SOFTWARE_OWNER);
            software.setOwner(SYSTEM_OWNER);
            SoftwareDao.persist(Software.fromJSON(softwareJson,SOFTWARE_OWNER));
        } catch (JSONException e) {
            log.error("failed to persist json \n"+json, e);
        }
    }
public void persistSingleSoftwareEntry ( String json ) { JSONObject softwareJson ; try { softwareJson = new JSONObject ( json ) ; Software software = Software . fromJSON ( softwareJson , SOFTWARE_OWNER ) ; software . setOwner ( SYSTEM_OWNER ) ; SoftwareDao . persist ( Software . fromJSON ( softwareJson , SOFTWARE_OWNER ) ) ; } catch ( JSONException e ) { log . error ( "failed to persist json \n" + json , e ) ; } }
persist a single Software domain object using a json string to the database
 @param json
persist a single Software domain object using a json string to the database @param json