Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:1.2.0.4000
Problems with Session and transaction handling?
Read this: 
http://hibernate.org/42.html
I want to write criteria with Expression.Or with nested properties.
Ex: There is a class "Employee" which has properties "Name" and "HomeAddress". 
There is another class for "Address" and that has a property "Street"
I want to write a criterial like 
.....
....
Expression.or
(Expression.eq("Name","John"),
 Expression.eq("
HomeAddress.Street","Some Street")));
Here nested property is "
HomeAddress.Street".
Thanks in advance for any help regarding this.
Chamara