Am I right in thinking that I have to return a Collection from all of my finder methods except findByPrimaryKey()?
In the DB I have a users table with a userId and a loginName. Both have unique constraints on them, but only the Id is the primary key. If I want to create a findByUserName() then does it have to return a collection, out of which I must fish the bean? Or can I do it some other way and return just the one bean? I'm using xdoclet and this isn't working: * @ejb.finder | * description="get user by name" | * signature="org.gargantus.user.UserLocal findByUserName(String name)" | * query="SELECT OBJECT(u) FROM user AS u WHERE u.userName = ?1" | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3832050#3832050 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3832050 ------------------------------------------------------- This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek For a limited time only, get FREE Ground shipping on all orders of $35 or more. Hurry up and shop folks, this offer expires April 30th! http://www.thinkgeek.com/freeshipping/?cpg=12297 _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
