The <> operation is incorrectly translated for hibernate queries. -----------------------------------------------------------------
Key: OCL-23 URL: http://jira.andromda.org/browse/OCL-23 Project: OCL Translation Type: Bug Components: AndroMDA Query Environment: Andromda 3.4-SNAPSHOT Reporter: Benjamin Lerman Assigned to: Chad Brandon Priority: Blocker in src/test/translations/query/TranslationTest-Hibernate-QL.xml, one can see this: <expression> <from> <![CDATA[ context Activity::findForFollowUp(startDate : Date, endDate : String, status: String) : Collection(Activity) body : allInstances()->select ( activity | activity.activityCase.actionRequired >= startDate and activity.activityCase.actionRequired <= endDate and activity.status <> status ) ]]> </from> <to> <![CDATA[ from org.andromda.translation.query.Activity as activity where activity.activityCase.actionRequired >= :startDate and activity.activityCase.actionRequired <= :endDate and activity.status not :status ]]> </to> </expression> The point is that <> is translated to not. Unfortunately this is not a correct hibernate query. The right translation would be to translate <> to <>. I join the patch that allows to do that. -- 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 - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------------ OpenSolaris 2009.06 is a cutting edge operating system for enterprises looking to deploy the next generation of Solaris that includes the latest innovations from Sun and the OpenSource community. Download a copy and enjoy capabilities such as Networking, Storage and Virtualization. Go to: http://p.sf.net/sfu/opensolaris-get