posted 10 years ago
Hi,
I'm new to the Hibernate I have the following database design,
user_info(user_id,user_name,.....,supervisor)
The supervisor is referred the own table's user_id column
I have created the hibernate mapping files and pojo using the automated feature of Netbean. The Codes are here
UserInfo.java
I don't see any option to get the supervisor's as I want to do get the supervisor's name by joining. I know how to get it done using the SQL . This is the SQL code I wish to execute. But I don't know how to write it in HQL.
Can anyone help me out of this?