Posts

Hibernate Configuration

To inform Hibernate from where to find mapping information of Java classes to database tables or configuration setting related to database, All such information is usually supplied by Hibernate Configuration Object. It is managed by an instance of org.hibernate.cfg.Configuration. An instance of org.hibernate.cfg.Configuration represents an entire set of mappings of an application’s Java types to an SQL database. The mappings are compiled from various XML mapping files or from Java 5 Annotations. Hibernate provides following types of configurations hibernate.cfg.xml – A standard XML file which contains hibernate configuration and which resides in root of application’s CLASSPATH  hibernate.properties – A Java compliant property file which holds key value pair for different hibernate configuration strings.  Programmatic configuration – This is the manual approach. The configuration can be defined in Java class.  1. hibernate.cfg.xml : The hibernate.cfg.xml file...

What is Hibernate ?

Image
What is Hibernate ? Hibernate is an  open source java based library used to work with relational databases.  The term Object/Relational Mapping refers to the programming technique for converting data between relational databases and object oriented programming languages such as Java, C# etc. It is a very powerful ORM solution build on top of JDBC API. It was initiated by Gavin King in 2001. It is a persistence framework which is used to store and retrieve data from database. It is a powerful, high performance Object-Relational Persistence and Query service for any Java Application Hibernate  makes use of persistent objects called POJOs (Plain Old Java Objects). Hibernate maps Java classes(POJO) to database tables and from Java data types to SQL data types and relieve the developer from 95% of common data persistence related programming tasks. These objects works as a data carrier called DTO (Data Transfer Object). They are used to carry data between diffe...

What is RPM and How to build your RPM?

Introduction RPM (RPM Package Manager) is a popular utility for installing software on Unix-like systems, particularly Red Hat Linux. The name RPM variously refers to the .rpm file format. I t is an open packaging system available for anyone to use. It allows users to take source code for new software and package it into source and binary form such that binaries can be easily installed and tracked and source can be rebuilt easily. It also maintains a database of all packages and their files that can be used for verifying packages and querying for information about files and/or packages. Design Goals RPM provides the capability to install an entire application with a single command, to track the files it put on the system, and to remove those files by using another single command. Make it easy to get packages on and off the system. Make it easy to verify a package was installed correctly. Make it easy for the package builder. Make it start with original s...