Queries from associations
-------------------------

         Key: OCL-14
         URL: http://jira.andromda.org/browse/OCL-14
     Project: OCL Translation
        Type: Improvement
  Components: AndroMDA Query  
    Reporter: Matthias Bohlen
 Assigned to: Chad Brandon 


Hi all,

I have two entities called "Instrument" and "Quote" and an OCL query
with the following query string:

context Instrument::findOrderedQuotes() : Collection(Quote)
 body: quotes->sortedBy(date)

"quotes" is the role name in an composition from Instrument to Quote.

The translation produced by AndroMDA was:

public java.util.Collection findOrderedQuotes(final int transform)
{
    return this.findOrderedQuotes(transform, "order by date");
}

There is no "from" clause in the Hibernate query string - I presume
that the query cannot be really executed.

What I expected was something like this:

  from a.b.c.Quote as entity
  where entity.instrument = instrument
  order by date

Cheers,
Matthias


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.andromda.org/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP, 
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
Andromda-devel mailing list
Andromda-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-devel

Reply via email to