In php Codeigniter you can write:
$this->db->select('username')->from->('users')->where('id',5);
Do you know any good lib for java/hibernate that function the same?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you are talking about some kind of typed queries than have a look at Hibernate Criteria API.
When you like it even more typed, than hava a look at the typesave queries provided by the JPA 2.0 functionality of Hibernate (@see http://www.ibm.com/developerworks/java/library/j-typesafejpa/)