السبت، 28 مارس 2015

الجمعة، 20 مارس 2015

Hibernate


Hibernate 

is an object-relational mapping library for the Java language,
providing a framework for mapping an object-oriented domain model 
to a traditional relational database.

Hibernate Advantages:

  • Hibernate takes care of mapping Java classes to database tables using XML files and without writing any line of code.
  • Provides simple APIs for storing and retrieving Java objects directly to and from the database.
  • If there is change in Database or in any table then the only need to change XML file properties.
  • Abstract away the unfamiliar SQL types and provide us to work around familiar Java Objects.
  • Hibernate does not require an application server to operate.
  • Manipulates Complex associations of objects of your database.
  • Minimize database access with smart fetching strategies.
  • Provides Simple querying of data.

Supported Databases:

Hibernate supports almost all the major RDBMS. Following is list of few of the database engines supported by Hibernate.
  • HSQL Database Engine
  • DB2/NT
  • MySQL
  • PostgreSQL
  • FrontBase
  • Oracle
  • Microsoft SQL Server Database
  • Sybase SQL Server
  • Informix Dynamic Server

Hibernate Question: only one session factory created for each database. Is this correct statement?
If you Know tell us your Answer
Mahmoud Elasry
Java and Oracle ADF Developer

الأربعاء، 18 مارس 2015

Java Servlet

Servlet life cycle can be defined as the entire process from its creation till the destruction. The following are the paths followed by a servlet
The servlet is initialized by calling the init () method.
The servlet calls service() method to process a client's request.
The servlet is terminated by calling the destroy() method.
Finally, servlet is garbage collected by the garbage collector of the JVM.

This link Has Many Interview Question For Servlets ..  
http://www.tutorialspoint.com/servlets/servlets_interview_questions.htm

I hope You Do Well ..
Mahmoud Elasry 
Java and Oracle ADF  Developer
Thanks All