Not sure what you're asking? You can model your finder in OCL OR you can hard code the finder in the @andromda.hibernate.query tagged value like below.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ramon Sent: Friday, January 28, 2005 2:15 PM To: [email protected] Subject: [Andromda-user] Doubt OCL. I'am see the example Swing. Is very good. I dont understand OCL. context Person::findByNameOrBirthDate(name:String,birthDate:Date): Collection(Person) body findByNameOrBirthDate : allInstances->select (person | person.name = name or person.birthDate = birthDate) How is in Hibernate??? Use <<FindQuery>> findByNameOrBirthDate( name : datatype::String, birthDate : datatype::Date ) : datatype::List tag.values @andromda.hibernate.query:Select name or birthDate from Person above is right ??? If no, how is right ??? Ramon ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Andromda-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/andromda-user ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Andromda-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/andromda-user
