Struts Tutorials:
Struts2 Tag CheckBoxList , Checkbox, Iterator, IF
Struts2 Tag Library Example
Struts2 Tiles Example
Struts2 Tiles I18N Example
Struts2 Questions
Struts Tiles I18N Example
Struts Eclipse MVC
Struts2 Tags
Struts2 Example and Tutorial
Struts MVC
Struts2 Validation
Hibernate Tutorials:
Hibernate Case Study
Class Hierarchy Persist Example
Using Hibernate Interceptor
Hibernate Questions with Answer
Hibernate Many-to-Many Mapping Example
Hibernate one-to-many Mapping Example
Hibernate and ORM tools
Spring Hibernate Example
Hibernate SessionFactory Example
Hibernate Mapping Class Hierarchy
Hibernate Questions
Hibernate SessionFactory Questions
Spring Hibernate Example:
Spring Hibernate Case Study
| #Written By Amit ways-create-Hibernate-SessionFactory : Example
Hibernate SessionFactory - the factory that provides Session for working with
database within a single transaction. Session can be taken from SessionFactory
and after use can be flushed and closed.
|
|
#Written By Amit Spring-Hibernate-Integration-example : Example
So idea is to create an EJB session bean, and configuring
Spring and Hibernate to as to be able to use the
Container Managed Transaction initiated by the client requesting
session bean, to Spring BeanFactory to get the Hibernate SessionFactory
created. Using this SessionFactory, and Session, I should be able to
do a simple JDBC insert operation on database table.
|
|
#Written By Amit ORM-Hibernate-Best-FIT : Discussion
Hibernate can be used in persistence layer, along with DAO (Data Access
Object) wrapper. Why DAO wrapper? to my understanding, it is always
advisable to hide any hibernate and SQL exception in DAO and provide
application with its own exception type.
|
|
#Written By Amit One-to-Many-mapping-example : Code
One-to-Many type of mapping example:
Case study: A Department can have many employees and an Employee can be assigned
to one Department.
|
|
#Written By Amit Many-to-Many-Mapping-Example : code
Many-to-Many type of mapping example:
Case study: A person can play many Roles, and a Role can be played
by many Persons.
|
|
#Written By Amit Interview-questions-answer : discussion
Hibernate Question :
What are the different Transaction Factories available with Hibernate?
Hibernate Answer :
There are three different types of Transaction Factoryavailable with Hibenate
3.2 as JDBCTransactionFactory, JTATransactionFactory and CMTTransactionFactory.
|
|
#Written By Amit mapping-class-hierarchy-table-per-subclass : Example
Hibernate mapping for object hierarchy using table per subclass way:
1. Persisting Parent child relationship (Inheritence in domain objects) in RDBMS,
using Hibernate as ORM tool. This aspect of mapping object hierarchy is better
understood when I sat down in front of my Laptop and started implementing
a case study of my own.
|
|
#Written By admin SessionFactory : Question-on-Session-Factory-Creation
|
| |