Posted in J2EE, JSP, Servlet on February 14, 2008 | No Comments »
JavaServer Pages (JSP) technology is well on its way to becoming the preeminent Java technology for building applications that serve dynamic Web content. The biggest advantage of using JSP is that it helps effectively separate presentation from content. This model can also be seen as a server-side implementation of the popular Model-View-Controller (MVC) design pattern.
Read Full Post »
Posted in Hibernate, Spring on February 14, 2008 | No Comments »
Click here to read.
Read Full Post »
Posted in Hibernate on February 14, 2008 | 1 Comment »
Mapping Classes to the Database
Hibernate objects, i.e., objects whose persistence Hibernate will manage, can be divided into two types.
Entity beans are objects which have a persistent identity: i.e., usually and identifier field which is managed by Hibernate. These are typically the central business objects in an application such as User, Customer, Order etc.
Read Full Post »
Posted in Hibernate on February 14, 2008 | 1 Comment »
Cascading Persistence
We have said, a number of times, that when an object is made persistent, that the objects it refers to are also made persistent. This was an oversimplification. In the mapping files for the classes, there is an attribute, cascade that lets us control how much, or how little, of a reference graph [...]
Read Full Post »
Posted in Hibernate on February 14, 2008 | No Comments »
Hibernate Objects
A Hibernate object, suitable for mapping into a database, is a normal java bean with a number of extra requirements.
There must be a default constructor for the class.
There must be accessors and mutators for all the instance variables of the class. Actually this is overstating the requirement but is a good base rule: [...]
Read Full Post »
Posted in Hibernate on February 14, 2008 | No Comments »
Hibernate is an Object Relational Mapping (ORM) tool. It manages the persistence of java objects in a relational database. The idea is that a programmer should be able to design his business objects as standard Java objects with very little interference from the problems of making these objects persist in a database. Together with a [...]
Read Full Post »