This open source integration demonstrates Hibernate integration through a simple phonebook sample Web application deployed to Liberty. The application uses Hibernate as the object-relational mapping layer to handle data persistence, and SpringMVC for presentation and business logic.
This sample demonstrates Hibernate integration through a simple phonebook Web application deployed to Liberty. The application uses Hibernate as the object-relational mapping layer to handle data persistence, and SpringMVC for presentation and business logic.
This sample can be installed onto runtime versions 188.8.131.52 and later.
- Install the packaged server by typing ‘java -jar HibernateSample.jar’ and following the instructions.
- Start the HibernateSample server by running the command ‘bin/server run HibernateSample’ from the root of the Liberty profile installation, and confirm the application started by looking in the console output:
CWWKZ0001I: Application PhoneBookByHibernate started in XX.XX seconds.
- In your browser, enter the URL for the application: http://localhost:9103/PhoneBookByHibernate/ (where port 9103 assumes the httpEndpoint provided in the sample server.xml has not been modified).
- In your browser, you should see the phone book displayed.
This sample does not include the open source dependencies. The installer will provide a list of the open source pre-requisite libraries and where they can be downloaded from. To help obtaining these libraries, the installer provides the option to download them on your behalf.
- Copyright.txt (copyright notice for this sample)
- readme.html (these instructions)
- server.xml (sample server using Hibernate shared library)
- PhoneBookByHibernate-1.0.0.war (sample Hibernate Web application)
- HibernateSampleLibs.xml (shared library configuration for Hibernate)
- HibernateSampleLibs (Hibernate and pre-requisite libraries – downloadable during installation)