findReferencing?
"spoerrij" <[email protected]> Mon, 06 Jul 2009 23:52:58 -0000
| Newsgroups | gmane.comp.java.orm.simpleorm |
|---|---|
| Message-ID | <[email protected]> |
How do you feel about having a findReferencing method in SRecordInstance, just like the existing findReference there?
That'd make it just as easy to lazily fetch the one-to-many as the many-to-one relationship.
E.g.
Already:
Department department = employee.findReference(employee.DEPARTMENT);
Proposing also:
List<Employee> employess = department.findReferencing(employee.DEPARTMENT);
Thanks,
Josh
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/SimpleORM/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/SimpleORM/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[email protected]
mailto:[email protected]
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/