Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0 final
    • Fix Version/s: None
    • Component/s: Persistence
    • Labels:
      None

      Description

      It makes sense to implement "createAlias" in DetachedCriteria. When I converted namedQueries to DetachedCriteria, I realized that I need "createAlias" here.

        Activity

        Hide
        Oziel Jose added a comment -

        Any news on this issue?

        Show
        Oziel Jose added a comment - Any news on this issue?
        Hide
        Oziel Jose added a comment -

        Why the detachedcriteria does not implement all criteria methods as in hibernate itself?

        Show
        Oziel Jose added a comment - Why the detachedcriteria does not implement all criteria methods as in hibernate itself?
        Hide
        Graeme Rocher added a comment -

        because DetachedCriteria supports other databases like mongodb, neo4j etc.

        We will need to subclass and create a HibernateDetachedCriteria for hibernate specific features

        Show
        Graeme Rocher added a comment - because DetachedCriteria supports other databases like mongodb, neo4j etc. We will need to subclass and create a HibernateDetachedCriteria for hibernate specific features
        Hide
        Andre Pietsch added a comment -

        v2.4.4: Even though there is a createAlias method on DetachedCriteria, it does not work the same as on HibernateCriteriaBuilder.

        HibernateCriteriaBuilder.createAlias(String associationPath, String alias, JoinType joinType)
        !=
        DetachedCriteria.createAlias(String association, String alias)

        1. joinType is missing. I do not know the default that is used, but either inner or outer joins are lacking then.
        2. association is not an associationPath

        For our framework we need to be able to give an association path to set our own aliases.

        I hope this can be fixed/extended.

        TIA

        Show
        Andre Pietsch added a comment - v2.4.4: Even though there is a createAlias method on DetachedCriteria, it does not work the same as on HibernateCriteriaBuilder. HibernateCriteriaBuilder.createAlias(String associationPath, String alias, JoinType joinType) != DetachedCriteria.createAlias(String association, String alias) 1. joinType is missing. I do not know the default that is used, but either inner or outer joins are lacking then. 2. association is not an associationPath For our framework we need to be able to give an association path to set our own aliases. I hope this can be fixed/extended. TIA

          People

          • Assignee:
            Unassigned
            Reporter:
            Nguyen Le Nam
          • Votes:
            13 Vote for this issue
            Watchers:
            12 Start watching this issue

            Dates

            • Created:
              Updated: