Results 1 to 3 of 3

Thread: Roo 1.1.3 MEMBER OF AspectJ finder Hibernate

  1. #1
    Join Date
    Sep 2004
    Posts
    50

    Default Roo 1.1.3 MEMBER OF AspectJ finder Hibernate

    It looks like Roo 1.1.3 has a bug in the generated AspectJ finder for Hibernate.

    I have just upgraded from 1.1.2 to 1.1.3 and have noticed that the referenced object in select statements have changed from <NameOfEntity> to just o.

    The problem with this is that I think there have been an over sight for MEMBER OF <collection>.

    So the statement that was previously 1.1.2:

    SELECT entityName FROM EntityName AS entityName WHERE :member_item0 MEMBER OF entityName.member

    becomes 1.1.3:

    SELECT o FROM EntityName AS o WHERE :member_item0 MEMBER OF entityName.member

    Note:

    entityName.member should be o.member and the staement should be:

    SELECT o FROM EntityName AS o WHERE :member_item0 MEMBER OF o.member

    Is this a known problem?

    To fix just move the offending code from .aj file into entity file and make appropriate changes.

  2. #2
    Join Date
    Dec 2005
    Posts
    935

    Default

    The same code is generated for all ORM providers, with the exception for DataNucleus 1.x., which is a special case. If your units are failing or the Roo-created mvc app doesn't work, raise a bug request and attach a Roo script and/or the zipped up project (use the Roo backup command.
    Alan
    Alan Stewart
    Spring Roo Committer
    twitter @alankstewart

  3. #3
    Join Date
    Sep 2004
    Posts
    50

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •