protected MBMessage addMBMessage() throws Exception {
    long pk = RandomTestUtil.nextLong();

    MBMessage mbMessage = _persistence.create(pk);

    mbMessage.setUuid(RandomTestUtil.randomString());

    mbMessage.setGroupId(RandomTestUtil.nextLong());

    mbMessage.setCompanyId(RandomTestUtil.nextLong());

    mbMessage.setUserId(RandomTestUtil.nextLong());

    mbMessage.setUserName(RandomTestUtil.randomString());

    mbMessage.setCreateDate(RandomTestUtil.nextDate());

    mbMessage.setModifiedDate(RandomTestUtil.nextDate());

    mbMessage.setClassNameId(RandomTestUtil.nextLong());

    mbMessage.setClassPK(RandomTestUtil.nextLong());

    mbMessage.setCategoryId(RandomTestUtil.nextLong());

    mbMessage.setThreadId(RandomTestUtil.nextLong());

    mbMessage.setRootMessageId(RandomTestUtil.nextLong());

    mbMessage.setParentMessageId(RandomTestUtil.nextLong());

    mbMessage.setSubject(RandomTestUtil.randomString());

    mbMessage.setBody(RandomTestUtil.randomString());

    mbMessage.setFormat(RandomTestUtil.randomString());

    mbMessage.setAnonymous(RandomTestUtil.randomBoolean());

    mbMessage.setPriority(RandomTestUtil.nextDouble());

    mbMessage.setAllowPingbacks(RandomTestUtil.randomBoolean());

    mbMessage.setAnswer(RandomTestUtil.randomBoolean());

    mbMessage.setStatus(RandomTestUtil.nextInt());

    mbMessage.setStatusByUserId(RandomTestUtil.nextLong());

    mbMessage.setStatusByUserName(RandomTestUtil.randomString());

    mbMessage.setStatusDate(RandomTestUtil.nextDate());

    _mbMessages.add(_persistence.update(mbMessage));

    return mbMessage;
  }
  @Test
  public void testCountByL_P() {
    try {
      _persistence.countByL_P(RandomTestUtil.nextDate(), RandomTestUtil.nextDouble());

      _persistence.countByL_P(RandomTestUtil.nextDate(), 0D);
    } catch (Exception e) {
      Assert.fail(e.getMessage());
    }
  }
  @Test
  public void testCountByC_V_ST() {
    try {
      _persistence.countByC_V_ST(
          RandomTestUtil.nextLong(), RandomTestUtil.nextDouble(), RandomTestUtil.nextInt());

      _persistence.countByC_V_ST(0L, 0D, 0);
    } catch (Exception e) {
      Assert.fail(e.getMessage());
    }
  }
  @Test
  public void testCountByG_A_V() {
    try {
      _persistence.countByG_A_V(
          RandomTestUtil.nextLong(), StringPool.BLANK, RandomTestUtil.nextDouble());

      _persistence.countByG_A_V(0L, StringPool.NULL, 0D);

      _persistence.countByG_A_V(0L, (String) null, 0D);
    } catch (Exception e) {
      Assert.fail(e.getMessage());
    }
  }
  protected MBThread addMBThread() throws Exception {
    long pk = RandomTestUtil.nextLong();

    MBThread mbThread = _persistence.create(pk);

    mbThread.setUuid(RandomTestUtil.randomString());

    mbThread.setGroupId(RandomTestUtil.nextLong());

    mbThread.setCompanyId(RandomTestUtil.nextLong());

    mbThread.setUserId(RandomTestUtil.nextLong());

    mbThread.setUserName(RandomTestUtil.randomString());

    mbThread.setCreateDate(RandomTestUtil.nextDate());

    mbThread.setModifiedDate(RandomTestUtil.nextDate());

    mbThread.setCategoryId(RandomTestUtil.nextLong());

    mbThread.setRootMessageId(RandomTestUtil.nextLong());

    mbThread.setRootMessageUserId(RandomTestUtil.nextLong());

    mbThread.setMessageCount(RandomTestUtil.nextInt());

    mbThread.setViewCount(RandomTestUtil.nextInt());

    mbThread.setLastPostByUserId(RandomTestUtil.nextLong());

    mbThread.setLastPostDate(RandomTestUtil.nextDate());

    mbThread.setPriority(RandomTestUtil.nextDouble());

    mbThread.setQuestion(RandomTestUtil.randomBoolean());

    mbThread.setStatus(RandomTestUtil.nextInt());

    mbThread.setStatusByUserId(RandomTestUtil.nextLong());

    mbThread.setStatusByUserName(RandomTestUtil.randomString());

    mbThread.setStatusDate(RandomTestUtil.nextDate());

    _mbThreads.add(_persistence.update(mbThread));

    return mbThread;
  }
  @Test
  public void testUpdateExisting() throws Exception {
    long pk = RandomTestUtil.nextLong();

    JournalArticleImage newJournalArticleImage = _persistence.create(pk);

    newJournalArticleImage.setGroupId(RandomTestUtil.nextLong());

    newJournalArticleImage.setArticleId(RandomTestUtil.randomString());

    newJournalArticleImage.setVersion(RandomTestUtil.nextDouble());

    newJournalArticleImage.setElInstanceId(RandomTestUtil.randomString());

    newJournalArticleImage.setElName(RandomTestUtil.randomString());

    newJournalArticleImage.setLanguageId(RandomTestUtil.randomString());

    newJournalArticleImage.setTempImage(RandomTestUtil.randomBoolean());

    _journalArticleImages.add(_persistence.update(newJournalArticleImage));

    JournalArticleImage existingJournalArticleImage =
        _persistence.findByPrimaryKey(newJournalArticleImage.getPrimaryKey());

    Assert.assertEquals(
        existingJournalArticleImage.getArticleImageId(),
        newJournalArticleImage.getArticleImageId());
    Assert.assertEquals(
        existingJournalArticleImage.getGroupId(), newJournalArticleImage.getGroupId());
    Assert.assertEquals(
        existingJournalArticleImage.getArticleId(), newJournalArticleImage.getArticleId());
    AssertUtils.assertEquals(
        existingJournalArticleImage.getVersion(), newJournalArticleImage.getVersion());
    Assert.assertEquals(
        existingJournalArticleImage.getElInstanceId(), newJournalArticleImage.getElInstanceId());
    Assert.assertEquals(
        existingJournalArticleImage.getElName(), newJournalArticleImage.getElName());
    Assert.assertEquals(
        existingJournalArticleImage.getLanguageId(), newJournalArticleImage.getLanguageId());
    Assert.assertEquals(
        existingJournalArticleImage.getTempImage(), newJournalArticleImage.getTempImage());
  }
  protected JournalArticleImage addJournalArticleImage() throws Exception {
    long pk = RandomTestUtil.nextLong();

    JournalArticleImage journalArticleImage = _persistence.create(pk);

    journalArticleImage.setGroupId(RandomTestUtil.nextLong());

    journalArticleImage.setArticleId(RandomTestUtil.randomString());

    journalArticleImage.setVersion(RandomTestUtil.nextDouble());

    journalArticleImage.setElInstanceId(RandomTestUtil.randomString());

    journalArticleImage.setElName(RandomTestUtil.randomString());

    journalArticleImage.setLanguageId(RandomTestUtil.randomString());

    journalArticleImage.setTempImage(RandomTestUtil.randomBoolean());

    _journalArticleImages.add(_persistence.update(journalArticleImage));

    return journalArticleImage;
  }
  @Test
  public void testUpdateExisting() throws Exception {
    long pk = RandomTestUtil.nextLong();

    MBMessage newMBMessage = _persistence.create(pk);

    newMBMessage.setUuid(RandomTestUtil.randomString());

    newMBMessage.setGroupId(RandomTestUtil.nextLong());

    newMBMessage.setCompanyId(RandomTestUtil.nextLong());

    newMBMessage.setUserId(RandomTestUtil.nextLong());

    newMBMessage.setUserName(RandomTestUtil.randomString());

    newMBMessage.setCreateDate(RandomTestUtil.nextDate());

    newMBMessage.setModifiedDate(RandomTestUtil.nextDate());

    newMBMessage.setClassNameId(RandomTestUtil.nextLong());

    newMBMessage.setClassPK(RandomTestUtil.nextLong());

    newMBMessage.setCategoryId(RandomTestUtil.nextLong());

    newMBMessage.setThreadId(RandomTestUtil.nextLong());

    newMBMessage.setRootMessageId(RandomTestUtil.nextLong());

    newMBMessage.setParentMessageId(RandomTestUtil.nextLong());

    newMBMessage.setSubject(RandomTestUtil.randomString());

    newMBMessage.setBody(RandomTestUtil.randomString());

    newMBMessage.setFormat(RandomTestUtil.randomString());

    newMBMessage.setAnonymous(RandomTestUtil.randomBoolean());

    newMBMessage.setPriority(RandomTestUtil.nextDouble());

    newMBMessage.setAllowPingbacks(RandomTestUtil.randomBoolean());

    newMBMessage.setAnswer(RandomTestUtil.randomBoolean());

    newMBMessage.setStatus(RandomTestUtil.nextInt());

    newMBMessage.setStatusByUserId(RandomTestUtil.nextLong());

    newMBMessage.setStatusByUserName(RandomTestUtil.randomString());

    newMBMessage.setStatusDate(RandomTestUtil.nextDate());

    _mbMessages.add(_persistence.update(newMBMessage));

    MBMessage existingMBMessage = _persistence.findByPrimaryKey(newMBMessage.getPrimaryKey());

    Assert.assertEquals(existingMBMessage.getUuid(), newMBMessage.getUuid());
    Assert.assertEquals(existingMBMessage.getMessageId(), newMBMessage.getMessageId());
    Assert.assertEquals(existingMBMessage.getGroupId(), newMBMessage.getGroupId());
    Assert.assertEquals(existingMBMessage.getCompanyId(), newMBMessage.getCompanyId());
    Assert.assertEquals(existingMBMessage.getUserId(), newMBMessage.getUserId());
    Assert.assertEquals(existingMBMessage.getUserName(), newMBMessage.getUserName());
    Assert.assertEquals(
        Time.getShortTimestamp(existingMBMessage.getCreateDate()),
        Time.getShortTimestamp(newMBMessage.getCreateDate()));
    Assert.assertEquals(
        Time.getShortTimestamp(existingMBMessage.getModifiedDate()),
        Time.getShortTimestamp(newMBMessage.getModifiedDate()));
    Assert.assertEquals(existingMBMessage.getClassNameId(), newMBMessage.getClassNameId());
    Assert.assertEquals(existingMBMessage.getClassPK(), newMBMessage.getClassPK());
    Assert.assertEquals(existingMBMessage.getCategoryId(), newMBMessage.getCategoryId());
    Assert.assertEquals(existingMBMessage.getThreadId(), newMBMessage.getThreadId());
    Assert.assertEquals(existingMBMessage.getRootMessageId(), newMBMessage.getRootMessageId());
    Assert.assertEquals(existingMBMessage.getParentMessageId(), newMBMessage.getParentMessageId());
    Assert.assertEquals(existingMBMessage.getSubject(), newMBMessage.getSubject());
    Assert.assertEquals(existingMBMessage.getBody(), newMBMessage.getBody());
    Assert.assertEquals(existingMBMessage.getFormat(), newMBMessage.getFormat());
    Assert.assertEquals(existingMBMessage.getAnonymous(), newMBMessage.getAnonymous());
    AssertUtils.assertEquals(existingMBMessage.getPriority(), newMBMessage.getPriority());
    Assert.assertEquals(existingMBMessage.getAllowPingbacks(), newMBMessage.getAllowPingbacks());
    Assert.assertEquals(existingMBMessage.getAnswer(), newMBMessage.getAnswer());
    Assert.assertEquals(existingMBMessage.getStatus(), newMBMessage.getStatus());
    Assert.assertEquals(existingMBMessage.getStatusByUserId(), newMBMessage.getStatusByUserId());
    Assert.assertEquals(
        existingMBMessage.getStatusByUserName(), newMBMessage.getStatusByUserName());
    Assert.assertEquals(
        Time.getShortTimestamp(existingMBMessage.getStatusDate()),
        Time.getShortTimestamp(newMBMessage.getStatusDate()));
  }
  @Test
  public void testUpdateExisting() throws Exception {
    long pk = RandomTestUtil.nextLong();

    MBThread newMBThread = _persistence.create(pk);

    newMBThread.setUuid(RandomTestUtil.randomString());

    newMBThread.setGroupId(RandomTestUtil.nextLong());

    newMBThread.setCompanyId(RandomTestUtil.nextLong());

    newMBThread.setUserId(RandomTestUtil.nextLong());

    newMBThread.setUserName(RandomTestUtil.randomString());

    newMBThread.setCreateDate(RandomTestUtil.nextDate());

    newMBThread.setModifiedDate(RandomTestUtil.nextDate());

    newMBThread.setCategoryId(RandomTestUtil.nextLong());

    newMBThread.setRootMessageId(RandomTestUtil.nextLong());

    newMBThread.setRootMessageUserId(RandomTestUtil.nextLong());

    newMBThread.setMessageCount(RandomTestUtil.nextInt());

    newMBThread.setViewCount(RandomTestUtil.nextInt());

    newMBThread.setLastPostByUserId(RandomTestUtil.nextLong());

    newMBThread.setLastPostDate(RandomTestUtil.nextDate());

    newMBThread.setPriority(RandomTestUtil.nextDouble());

    newMBThread.setQuestion(RandomTestUtil.randomBoolean());

    newMBThread.setStatus(RandomTestUtil.nextInt());

    newMBThread.setStatusByUserId(RandomTestUtil.nextLong());

    newMBThread.setStatusByUserName(RandomTestUtil.randomString());

    newMBThread.setStatusDate(RandomTestUtil.nextDate());

    _mbThreads.add(_persistence.update(newMBThread));

    MBThread existingMBThread = _persistence.findByPrimaryKey(newMBThread.getPrimaryKey());

    Assert.assertEquals(existingMBThread.getUuid(), newMBThread.getUuid());
    Assert.assertEquals(existingMBThread.getThreadId(), newMBThread.getThreadId());
    Assert.assertEquals(existingMBThread.getGroupId(), newMBThread.getGroupId());
    Assert.assertEquals(existingMBThread.getCompanyId(), newMBThread.getCompanyId());
    Assert.assertEquals(existingMBThread.getUserId(), newMBThread.getUserId());
    Assert.assertEquals(existingMBThread.getUserName(), newMBThread.getUserName());
    Assert.assertEquals(
        Time.getShortTimestamp(existingMBThread.getCreateDate()),
        Time.getShortTimestamp(newMBThread.getCreateDate()));
    Assert.assertEquals(
        Time.getShortTimestamp(existingMBThread.getModifiedDate()),
        Time.getShortTimestamp(newMBThread.getModifiedDate()));
    Assert.assertEquals(existingMBThread.getCategoryId(), newMBThread.getCategoryId());
    Assert.assertEquals(existingMBThread.getRootMessageId(), newMBThread.getRootMessageId());
    Assert.assertEquals(
        existingMBThread.getRootMessageUserId(), newMBThread.getRootMessageUserId());
    Assert.assertEquals(existingMBThread.getMessageCount(), newMBThread.getMessageCount());
    Assert.assertEquals(existingMBThread.getViewCount(), newMBThread.getViewCount());
    Assert.assertEquals(existingMBThread.getLastPostByUserId(), newMBThread.getLastPostByUserId());
    Assert.assertEquals(
        Time.getShortTimestamp(existingMBThread.getLastPostDate()),
        Time.getShortTimestamp(newMBThread.getLastPostDate()));
    AssertUtils.assertEquals(existingMBThread.getPriority(), newMBThread.getPriority());
    Assert.assertEquals(existingMBThread.getQuestion(), newMBThread.getQuestion());
    Assert.assertEquals(existingMBThread.getStatus(), newMBThread.getStatus());
    Assert.assertEquals(existingMBThread.getStatusByUserId(), newMBThread.getStatusByUserId());
    Assert.assertEquals(existingMBThread.getStatusByUserName(), newMBThread.getStatusByUserName());
    Assert.assertEquals(
        Time.getShortTimestamp(existingMBThread.getStatusDate()),
        Time.getShortTimestamp(newMBThread.getStatusDate()));
  }
  @Test
  public void testUpdateExisting() throws Exception {
    long pk = RandomTestUtil.nextLong();

    JournalArticle newJournalArticle = _persistence.create(pk);

    newJournalArticle.setUuid(RandomTestUtil.randomString());

    newJournalArticle.setResourcePrimKey(RandomTestUtil.nextLong());

    newJournalArticle.setGroupId(RandomTestUtil.nextLong());

    newJournalArticle.setCompanyId(RandomTestUtil.nextLong());

    newJournalArticle.setUserId(RandomTestUtil.nextLong());

    newJournalArticle.setUserName(RandomTestUtil.randomString());

    newJournalArticle.setCreateDate(RandomTestUtil.nextDate());

    newJournalArticle.setModifiedDate(RandomTestUtil.nextDate());

    newJournalArticle.setFolderId(RandomTestUtil.nextLong());

    newJournalArticle.setClassNameId(RandomTestUtil.nextLong());

    newJournalArticle.setClassPK(RandomTestUtil.nextLong());

    newJournalArticle.setTreePath(RandomTestUtil.randomString());

    newJournalArticle.setArticleId(RandomTestUtil.randomString());

    newJournalArticle.setVersion(RandomTestUtil.nextDouble());

    newJournalArticle.setTitle(RandomTestUtil.randomString());

    newJournalArticle.setUrlTitle(RandomTestUtil.randomString());

    newJournalArticle.setDescription(RandomTestUtil.randomString());

    newJournalArticle.setContent(RandomTestUtil.randomString());

    newJournalArticle.setType(RandomTestUtil.randomString());

    newJournalArticle.setStructureId(RandomTestUtil.randomString());

    newJournalArticle.setTemplateId(RandomTestUtil.randomString());

    newJournalArticle.setLayoutUuid(RandomTestUtil.randomString());

    newJournalArticle.setDisplayDate(RandomTestUtil.nextDate());

    newJournalArticle.setExpirationDate(RandomTestUtil.nextDate());

    newJournalArticle.setReviewDate(RandomTestUtil.nextDate());

    newJournalArticle.setIndexable(RandomTestUtil.randomBoolean());

    newJournalArticle.setSmallImage(RandomTestUtil.randomBoolean());

    newJournalArticle.setSmallImageId(RandomTestUtil.nextLong());

    newJournalArticle.setSmallImageURL(RandomTestUtil.randomString());

    newJournalArticle.setStatus(RandomTestUtil.nextInt());

    newJournalArticle.setStatusByUserId(RandomTestUtil.nextLong());

    newJournalArticle.setStatusByUserName(RandomTestUtil.randomString());

    newJournalArticle.setStatusDate(RandomTestUtil.nextDate());

    _persistence.update(newJournalArticle);

    JournalArticle existingJournalArticle =
        _persistence.findByPrimaryKey(newJournalArticle.getPrimaryKey());

    Assert.assertEquals(existingJournalArticle.getUuid(), newJournalArticle.getUuid());
    Assert.assertEquals(existingJournalArticle.getId(), newJournalArticle.getId());
    Assert.assertEquals(
        existingJournalArticle.getResourcePrimKey(), newJournalArticle.getResourcePrimKey());
    Assert.assertEquals(existingJournalArticle.getGroupId(), newJournalArticle.getGroupId());
    Assert.assertEquals(existingJournalArticle.getCompanyId(), newJournalArticle.getCompanyId());
    Assert.assertEquals(existingJournalArticle.getUserId(), newJournalArticle.getUserId());
    Assert.assertEquals(existingJournalArticle.getUserName(), newJournalArticle.getUserName());
    Assert.assertEquals(
        Time.getShortTimestamp(existingJournalArticle.getCreateDate()),
        Time.getShortTimestamp(newJournalArticle.getCreateDate()));
    Assert.assertEquals(
        Time.getShortTimestamp(existingJournalArticle.getModifiedDate()),
        Time.getShortTimestamp(newJournalArticle.getModifiedDate()));
    Assert.assertEquals(existingJournalArticle.getFolderId(), newJournalArticle.getFolderId());
    Assert.assertEquals(
        existingJournalArticle.getClassNameId(), newJournalArticle.getClassNameId());
    Assert.assertEquals(existingJournalArticle.getClassPK(), newJournalArticle.getClassPK());
    Assert.assertEquals(existingJournalArticle.getTreePath(), newJournalArticle.getTreePath());
    Assert.assertEquals(existingJournalArticle.getArticleId(), newJournalArticle.getArticleId());
    AssertUtils.assertEquals(existingJournalArticle.getVersion(), newJournalArticle.getVersion());
    Assert.assertEquals(existingJournalArticle.getTitle(), newJournalArticle.getTitle());
    Assert.assertEquals(existingJournalArticle.getUrlTitle(), newJournalArticle.getUrlTitle());
    Assert.assertEquals(
        existingJournalArticle.getDescription(), newJournalArticle.getDescription());
    Assert.assertEquals(existingJournalArticle.getContent(), newJournalArticle.getContent());
    Assert.assertEquals(existingJournalArticle.getType(), newJournalArticle.getType());
    Assert.assertEquals(
        existingJournalArticle.getStructureId(), newJournalArticle.getStructureId());
    Assert.assertEquals(existingJournalArticle.getTemplateId(), newJournalArticle.getTemplateId());
    Assert.assertEquals(existingJournalArticle.getLayoutUuid(), newJournalArticle.getLayoutUuid());
    Assert.assertEquals(
        Time.getShortTimestamp(existingJournalArticle.getDisplayDate()),
        Time.getShortTimestamp(newJournalArticle.getDisplayDate()));
    Assert.assertEquals(
        Time.getShortTimestamp(existingJournalArticle.getExpirationDate()),
        Time.getShortTimestamp(newJournalArticle.getExpirationDate()));
    Assert.assertEquals(
        Time.getShortTimestamp(existingJournalArticle.getReviewDate()),
        Time.getShortTimestamp(newJournalArticle.getReviewDate()));
    Assert.assertEquals(existingJournalArticle.getIndexable(), newJournalArticle.getIndexable());
    Assert.assertEquals(existingJournalArticle.getSmallImage(), newJournalArticle.getSmallImage());
    Assert.assertEquals(
        existingJournalArticle.getSmallImageId(), newJournalArticle.getSmallImageId());
    Assert.assertEquals(
        existingJournalArticle.getSmallImageURL(), newJournalArticle.getSmallImageURL());
    Assert.assertEquals(existingJournalArticle.getStatus(), newJournalArticle.getStatus());
    Assert.assertEquals(
        existingJournalArticle.getStatusByUserId(), newJournalArticle.getStatusByUserId());
    Assert.assertEquals(
        existingJournalArticle.getStatusByUserName(), newJournalArticle.getStatusByUserName());
    Assert.assertEquals(
        Time.getShortTimestamp(existingJournalArticle.getStatusDate()),
        Time.getShortTimestamp(newJournalArticle.getStatusDate()));
  }
  protected JournalArticle addJournalArticle() throws Exception {
    long pk = RandomTestUtil.nextLong();

    JournalArticle journalArticle = _persistence.create(pk);

    journalArticle.setUuid(RandomTestUtil.randomString());

    journalArticle.setResourcePrimKey(RandomTestUtil.nextLong());

    journalArticle.setGroupId(RandomTestUtil.nextLong());

    journalArticle.setCompanyId(RandomTestUtil.nextLong());

    journalArticle.setUserId(RandomTestUtil.nextLong());

    journalArticle.setUserName(RandomTestUtil.randomString());

    journalArticle.setCreateDate(RandomTestUtil.nextDate());

    journalArticle.setModifiedDate(RandomTestUtil.nextDate());

    journalArticle.setFolderId(RandomTestUtil.nextLong());

    journalArticle.setClassNameId(RandomTestUtil.nextLong());

    journalArticle.setClassPK(RandomTestUtil.nextLong());

    journalArticle.setTreePath(RandomTestUtil.randomString());

    journalArticle.setArticleId(RandomTestUtil.randomString());

    journalArticle.setVersion(RandomTestUtil.nextDouble());

    journalArticle.setTitle(RandomTestUtil.randomString());

    journalArticle.setUrlTitle(RandomTestUtil.randomString());

    journalArticle.setDescription(RandomTestUtil.randomString());

    journalArticle.setContent(RandomTestUtil.randomString());

    journalArticle.setType(RandomTestUtil.randomString());

    journalArticle.setStructureId(RandomTestUtil.randomString());

    journalArticle.setTemplateId(RandomTestUtil.randomString());

    journalArticle.setLayoutUuid(RandomTestUtil.randomString());

    journalArticle.setDisplayDate(RandomTestUtil.nextDate());

    journalArticle.setExpirationDate(RandomTestUtil.nextDate());

    journalArticle.setReviewDate(RandomTestUtil.nextDate());

    journalArticle.setIndexable(RandomTestUtil.randomBoolean());

    journalArticle.setSmallImage(RandomTestUtil.randomBoolean());

    journalArticle.setSmallImageId(RandomTestUtil.nextLong());

    journalArticle.setSmallImageURL(RandomTestUtil.randomString());

    journalArticle.setStatus(RandomTestUtil.nextInt());

    journalArticle.setStatusByUserId(RandomTestUtil.nextLong());

    journalArticle.setStatusByUserName(RandomTestUtil.randomString());

    journalArticle.setStatusDate(RandomTestUtil.nextDate());

    _persistence.update(journalArticle);

    return journalArticle;
  }