I have an AppUser class;
class AppUser { private String firstName; private String lastName;
I also have another Student class;
class Student { private AppUser appUser; private Date dateOfBirth;
How do I search Student John Doe , firstName John, lastName Doe?
If it were a date of birth, I would create a Criteria and add an equality constraint ( Restristions.eq ) to the date. How to do this for lastName and firstName in an AppUser object?
java hibernate criteria
n002213f
source share