[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-1620) HQL Editor & Hibernate Criteria Editor

Dima Geraskov (JIRA) jira-events at lists.jboss.org
Fri Jan 25 10:14:21 EST 2008


    [ http://jira.jboss.com/jira/browse/JBIDE-1620?page=comments#action_12396836 ] 
            
Dima Geraskov commented on JBIDE-1620:
--------------------------------------

The good idea is not open such number of editors as number of selected elements, but organize selected propertiesand make default query like this:

session.createCriteria(Address.class)
.setProjection( Projections.projectionList()
    .add( Projections.groupProperty("street").as("street") )
    .add( Projections.groupProperty("zip").as("zip") )
    .add( Projections.groupProperty("house").as("house") )
 ).setResultTransformer(Criteria.ALIAS_TO_ENTITY_MAP)

This is not trivial task (we can contain natural joins for example between selected Persistent classes), but for properties of one Persistence class it seems easy to realize (not shure if we have associations and simple properties selected from one persistance class ).

> HQL Editor & Hibernate Criteria Editor
> --------------------------------------
>
>                 Key: JBIDE-1620
>                 URL: http://jira.jboss.com/jira/browse/JBIDE-1620
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>          Components: Hibernate
>            Reporter: Vitali Yemialyanchyk
>         Assigned To: Vitali Yemialyanchyk
>            Priority: Minor
>             Fix For: 2.0.1
>
>
> for the first time it is not obvious what he should enter into editors to get some result and
> these editors are helpful - it be greate for the first time have a code snippet where... Window -> Preferences -> user can switch off this code
> for example:
> 1)
> // this is small code example, you can find more
> // http://www.hibernate.org/hib_docs/reference/en/html/queryhql.html
> from mapping.querycache.Item
> 2)
> // this is small code example, you can find more
> // http://www.hibernate.org/hib_docs/reference/en/html/querycriteria.html
> session.createCriteria(mapping.querycache.Item.class)

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