ryan_marsh wrote:
I'm following the Spring cartridge's how-to as an example of how to create 
finders for my entities (no EJB btw). I created operations on my entity exactly 
as the example shows, however no findBy methods are generated when I re-run. 
All my code is re-generated, but no findBy methods are in it. I tried adding 
OCL constraints to one of the findBy operations and that didn't work either. 
The operations are marked as queries, they are in classifier scope, they are 
named things like 

[EMAIL PROTECTED] (ImportantNumber : Long) : List


(end of quote)




well, normally finders can be generated without using any OCL if you model one 
with a single argument that has the same name and type as one of the properties 
(attributes or associations)



the example from the howto 
(http://galaxy.andromda.org/docs/andromda-spring-cartridge/howto6.html) shows 
Car.findByType(type:CarType), this one does not need OCL



I noticed your attribute starts with a capital, I would never model class 
members starting with a capital, this might confuse the reflection library used 
by AndroMDA, we've seen that before .. also at runtime sometimes, for example 
in JSP pages variables would not be found etc.. so try using a lowercase




ryan_marsh wrote:
I also discovered that the OCL shown on 
http://team.andromda.org/docs/andromda-ocl-query-library/modeling.html doesn't 
parse in MagicDraw. 
(end of quote)




although MagicDraw claims to be OCL2.0 compatible, it is not. It does not 
support the body keyword and therefore underscores the query in red
--
Wouter Zoons - [EMAIL PROTECTED]

http://www.andromda.org/
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=2185#2185
Posting to http://forum.andromda.org/ is preferred over posting to the mailing 
list!


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to