[jbosstools-issues] [JBoss JIRA] Closed: (JBIDE-440) Enable first-class support of Enum types in the Query Parameters view

Max Andersen (JIRA) jira-events at lists.jboss.org
Mon Jul 30 05:45:51 EDT 2007


     [ http://jira.jboss.com/jira/browse/JBIDE-440?page=all ]

Max Andersen closed JBIDE-440.
------------------------------

    Resolution: Duplicate Issue

> Enable first-class support of Enum types in the Query Parameters view
> ---------------------------------------------------------------------
>
>                 Key: JBIDE-440
>                 URL: http://jira.jboss.com/jira/browse/JBIDE-440
>             Project: JBoss Tools
>          Issue Type: Feature Request
>          Components: Hibernate
>    Affects Versions: 2.0.0.Beta2
>            Reporter: Joseph Marques
>         Assigned To: Max Andersen
>
> Granted, Enums are persisted as either ints or strings, but that doesn't mean that the Query Parameters view can't support Enums as a first-class construct in the Type column.  I suppose there are a few different ways to support this, but let me explain the semantics that I think would make the most sense for supreme usability:
> Select "enum" for the "Type" column
> Then you specify the class in the "Value" column (identical to how it works when "class" is selected for the "Type" column)
> Then, the tools should be able to be clever enough to read the mapping strategy for this enum based on the context of where it is being used in the corresponding hql/jpql statement.  The tools would then map the Enum class to it's appropriate int or string representation during query translation / execution.  This allows the query writer to be more effective because he/she wouldn't have to know the actual enum mapping strategy to be able to mock up and test the query.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbosstools-issues mailing list