I want fetch last record using hibernate 开发者_C百科criteria
Can u help me?
What do you mean by hibernate criteria in mySQL? hibernate criteria is used in java to retrieve persistant class objects.
in my SQL you can run following query
SELECT col1, col2, ... FROM yourtable ORDER BY xyz DESC LIMIT 1
精彩评论