[ 
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)

Reply via email to