I have a class Person with the normal person stuff, like name, username, password, etc. I try to apply this constraint in a query-method, to find a person by username:
context Person::findByUsername(username String::dataype):Person body allInstances()->select(aPerson|aPerson.USERNAME = username) However, in the JBoss logs, the query looks like this: select personimpl0_.ID as ID, personimpl0_.NAME as NAME, personimpl0_.ADDRESS as ADDRESS, personimpl0_.PASSWORD as PASSWORD, personimpl0_.SOCIAL_SECURITY_NUMBER as SOCIAL_S5_, personimpl0_.USERNAME as USERNAME, personimpl0_.CASH as CASH, personimpl0_.PORTFOLIO_FK as PORTFOLI8_ from PERSON personimpl0_ where (personimpl0_.NAME=? ) Evidently, it chooses to look up the supplied username against the "Full name"-column... What am I getting wrong here? _________________________________________________________ Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=618#618 Posting to http://forum.andromda.org/ is preferred over posting to the mailing list! ------------------------------------------------------- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 _______________________________________________ Andromda-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/andromda-user
