you can load the objects by lastname/firstname without a problem.
You have three options:
- write a sql statement
- use HQL (looks like SQL but actually isn't)
- Construct the query using Java Objects (this has a fancy name too, but I don't know it)
I can't give you an example, but maybe this section (14.9) from the docu helps:
http://www.hibernate.org/hib_docs/refer ... ryhql.html
And at the end of 1.2.6 you can see how to use HQL to get a list of objects
http://www.hibernate.org/hib_docs/refer ... ersistence
I personally love the java way to construct the query.
You can get an idea of it here:
http://www.hibernate.org/hib_docs/refer ... teria.html
regards
Jens