The completed project, including jars can be found here: Completed Project
JPA And Hibernate Many-To-One Tutorial
Spring Dependency Injection With Struts MVC And Hibernate/Repository Pattern
This is a tutorial that shows how to used Spring dependency injection coupled with Struts2 model view controller framework.
The tutorial also shows how Spring can be setup to handle Hibernate object relational mapping using the Repository Pattern.
Guice Dependency Injection With Struts MVC And Hibernate/Repository Pattern
This is a tutorial on how to use Guice with Struts2 model view controller and Hibernate object relational mapping. This tutorial extends our Guice Dependency Injection With Struts MVC tutorial. The extension adds Hibernate ORM capabilites mediated by Guice to the previous project and takes advantage of the Repository Pattern.
Guice Dependency Injection With Struts MVC
This tutorial will show you how to use Google Guice. Guice (pronounced "juice") is a lightweight dependency injection framework brought to you by Google. Dependency injection is a design pattern in object-oriented computer programming whose purpose is to reduce the coupling between software components. It is similar to the factory method pattern. Frequently an object uses (depends on) work produced by another part of the system. With DI, the object does not need to know in advance about how the other part of the system works. Instead, the programmer provides (injects) the relevant system component in advance along with a contract that it will behave in a certain way.
Struts2 Tutorial
This is a basic Struts2 tutorial using eclipse as an IDE.
Software As A Service
Java Architecture For Xml Binding
Java Architecture For Xml Binding is a Java API for taking an xml file, and loading, or "Unmarshalling", its data into
a set of objects. You would then use those objects in your application for whatever purposes you need them for.
Conversely, you can create a set of objects that represent the parent child relationships in an xml document, load them with the data and do what is called Marshalling, which is then using the JAXB framework to transform those loaded objects into a loaded xml document.
Weather Website
This is a project that I created that gives local weather on demand.
This site uses Weather.com's xml weather webservice.
Repository Pattern Using Guice IoC
This is an abstract generic class that is used in conjunction with Hibernate to access database information
using the Repository Pattern.
A repository mediates between the domain and the client. Client objects call upon the Repository to collect the data from and submit the data to the domain. The Repository carries out the appropriate CRUD operations behind the scene, in an encapsulated manner. The pattern also allows the separation between the domain and data mapping layers.
The repository pattern shown here uses Java Hibernate Object Relational Mapping for all the CRUD operations. The Repository uses a Hibernate utility for access to the Hibernate sessions. Access to the hibernateutil is wrapped through the hibernate connection class which is created in a connectionprovider as a singleton using Google Guice Inversion of Control framework.
