Need Hibernate query to join 2 distinct tables . ex:
private class User
{
private long userid;
private String name;
//stters and getters
}
And onother table as
private class UserProfile
{
private long id;
private String company;
//setters and getters
}
Here userid and id are the same constraints.
Please help in this regards Thanks