I am using named queries in my Hibernate Entity classes with annotations.
What are the best practices I should follow if multiple queries per entity class?
Note: We have ruled the idea of putting queries in any property file or hbm.xml file
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.
You can then reference
User.byUsernameetc everywhere else, so only one string reference. And you get all the predicto intellitext goodness. Like below :