Chapter 12. Best Practices, Style Guide, Tips and Tricks
Hibernate supports several different systems for building applications. For example, you can start with Java objects (as shown in Chapter 3) or with an existing database (as shown in Chapter 4). If, as sometimes happens, you "inherit" a system, this may force your hand by making it necessary to start from an existing database.
In this chapter, we'll look at a few available technologies and solutions for reducing or improving your code. They aren't required but may make your life with Hibernate easier. They include:
Reducing code with inversion of control. Reducing session-creation impact with THReadLocal. Using Hibernate as an EJB BMP Solution. Integrating additional tools and technologies. Reviewing applications that use Hibernate. Strategies for getting started.
Hibernate is a popular technology, so watch the Hibernate Web site and forum (http://www.hibernate.org/) closely; there's always something interesting going on.
 |