1. How many JAR files are needed in order to use the Hibernate package? 2. Which Java class is used to configure Hibernate? 3. Which Hibernate properties must be updated for each developer? 4. Why were all the methods in the HibernateHelper class defined as static? 5. What is the name of the Hibernate method that initializes the session factory? 6. Why isn't the call to initSessionFactory placed in the HelperBase? 7. How can multiple classes be sent to initSessionFactory? 8. How much SQL do you need to know in order to use Hibernate to save to a database? 9. Why use an initialization parameter to indicate if the tables for the database should be recreated? Why should this variable usually have the value of false? 10. Write the XML that will define an initialization parameter named create with a value of false. 11. Write the code that will retrieve the value of the create parameter from the web.xml file and cast it to a boolean. 12. What is the name of the method in HibernateHelper that will recreate the tables for the database? Can multiple classes be sent to this method? 13. Which method in the HibernateHelper class contains the properties for configuring Hibernate? 14. What are the three things that the initHibernate method does? 15. What changes must be made in the initHibernate method before it can be used to configure Hibernate? 16. Why is Hibernate initialized in the init method of the servlet? 17. Why is it necessary to close Hibernate? In your experience of Java, have there been other classes that you have closed before ending an application? 18. When should Hibernate be closed? 19. What are the two methods that are declared in the ServletContextListener class? 20. When Hibernate closes, it releases its resources. What other resources should be released at the same time? 21. How is the ServletContextListener class registered with Tomcat, so that the class will listen for when Tomcat starts and stops? 22. What is a primary key for a database? 23. How often should a primary key for a row in a database be changed? 24. What are the advantages of letting Hibernate set the value of the primary key? 25. What are the names of the four annotations that Hibernate uses to annotate a bean? 26. What is the purpose of the Entity annotation? Where does it belong? 27. What is the purpose of the Id annotation? Where does it belong? 28. How many properties in the bean should be annotated with the Id annotation? 29. What is the purpose of the GenerateValue annotation? Where does it belong? 30. How many properties in the bean should be annotated with the GenerateValue annotation? 31. What is the purpose of the PersistentBase class? 32. What is the default action when Hibernate finds an accessor in a bean? 33. How do the names of accessors begin? How many parameters does an accessor have? 34. What is meant by a transient field? 35. What is meant by the transient annotation? How many properties in the bean should be annotated with the transient annotation? 36. What does Hibernate use to access the database? 37. What is the name of the method in the HibernateHelper class that retrieves a list of beans? 38. Write the code that will retrieve all the beans from a database. 39. What is the name of the method in the HibernateHelper class that writes the values in a bean to the database? 40. Usually, data is placed in the session so it can be accessed from the JSPs. What is used instead of the session in order to make the data from the database available to the JSPs? 41. Write the EL that retrieves all the data from the database that was placed in the session. 42. Why is it better to use a custom HTML tag to loop through data in an HTML page, instead of adding Java code to the JSP? 43. Which JAR files are needed in order to use the JSTL standard tags? 44. Write the taglib statement that makes the JSTL tags available for a JSP. How many times should this tag appear in a page? Where should this tag be placed in a page? 45. What is the purpose of the var attribute in the JSTL forEach loop? 46. What is the purpose of the items attribute in the JSTL forEach loop? 47. Write the HTML code, using JSTL, that displays all the data from the database in a readable format for the user. 48. How does Hibernate know if it should create a new row in a database or update an existing row in a database? 49. How does the type of request affect how Hibernate updates a current row or adds a new row in the database? 50. Summarize the steps needed in order to use Hibernate in a web application. 51. Why should the data be validated before it is written to the database? 52. Write the code that will save a bean to the database. 53. Write the code that will retrieve all the beans from the database and make them available for the JSPs. 54. What changes must be made to the Hibernate config file before it can be used by a developer? 55. If a class defines properties in Java and uses the Hibernate config file, which configuration values will be used to configure Hibernate? 56. Where should the Hibernate configuration file be placed? 57. Why is the simplified controller helper so much simpler than the normal controller helper?