Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

CHAPTER 27: Hibernate > Structure of the Exemplified Application

Structure of the Exemplified Application

Now I will show you how to use Hibernate with the albums example from Chapter 26, so you can appreciate the advantages of an object relational bridge. In addition, you can use the already integrated database system Java DB again now. Add the library wrapper module with the Hibernate libraries to the already created Platform application. Each module that wants to use the Hibernate functionality is able to define a dependency to the application. In this example, it is only the application module (My Module). Open the Properties window over the context menu and add the Hibernate module under Libraries. You have to add a dependency on the Java DB module to the Hibernate module in the same way so Hibernate can access the Java DB database driver.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial