Return-Path: X-Original-To: apmail-roller-commits-archive@www.apache.org Delivered-To: apmail-roller-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D7E86112B7 for ; Mon, 23 Jun 2014 01:41:24 +0000 (UTC) Received: (qmail 42617 invoked by uid 500); 23 Jun 2014 01:41:24 -0000 Delivered-To: apmail-roller-commits-archive@roller.apache.org Received: (qmail 42414 invoked by uid 500); 23 Jun 2014 01:41:24 -0000 Mailing-List: contact commits-help@roller.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@roller.apache.org Delivered-To: mailing list commits@roller.apache.org Received: (qmail 42317 invoked by uid 99); 23 Jun 2014 01:41:24 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Jun 2014 01:41:24 +0000 Date: Mon, 23 Jun 2014 01:41:24 +0000 (UTC) From: "Glen Mazza (JIRA)" To: commits@roller.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ROL-1997) Switch WeblogEntry's pub status fields (DRAFT, PUBLISHED, PENDING, SCHEDULED) to an enum type MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/ROL-1997?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14040336#comment-14040336 ] Glen Mazza commented on ROL-1997: --------------------------------- Actually, just learned, real value is its "name()" method -- toString() defaults to name() but can be overridden so the latter is preferable. I used the enumerated property (http://tomee.apache.org/examples-trunk/jpa-enumerated/README.html) to map to the string status in the weblog entry table. > Switch WeblogEntry's pub status fields (DRAFT, PUBLISHED, PENDING, SCHEDULED) to an enum type > --------------------------------------------------------------------------------------------- > > Key: ROL-1997 > URL: https://issues.apache.org/jira/browse/ROL-1997 > Project: Apache Roller > Issue Type: Task > Reporter: Glen Mazza > Assignee: Roller Unassigned > Priority: Minor > > ...and have that enum type used for the get/setStatus() in WeblogEntrySearchCriteria. -- This message was sent by Atlassian JIRA (v6.2#6252)