how do i check if the parameter is null? Depending on the result i want to add or not to add the Restriction
if person.getLastName() == null i don't want to add the relevant restriction, how do i do this?
persons = session.createCriteria(PersonEntity.class).add(
Restrictions.eq("LastName", person.getLastName())).add(
Restrictions.eq("FirstName", person.getFirstName())).add(
Restrictions.eq("email", person.getUser().getEmail()))
.list();
Thanks, tania