I am new to Hibernate, I want to convert the following query to Hibernate coding.
SELECT a.RegisterCount, b.Id, b.Type, COUNT(a.RegisterCount) AS Expr1
FROM Student AS a INNER JOIN
Search_OldStudent AS b ON a.StudentId = b.Id
GROUP BY a.RegisterCount, b.Id, b.Type
In that, there is no primary relation between a.StudentId and b.Id. And also there is no mapping between them.
Can you please suggest how to do this one?