Hi all,

I have a question on an OCL statement that was translated too
simplistically:

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

Am I missing something?

Matthias

---

Matthias Bohlen
"Consulting that helps project teams to succeed..."

Internet:
   http://www.mbohlen.de/
   [EMAIL PROTECTED]

Phone: +49 (170) 772 8545





-------------------------------------------------------
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-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to