 |
| |
| Expertise >>Technology Expertise >>Hibernate Techology |
| |
| Hibernate - Framework |
|
In current enterprise application development, people mostly use object-oriented technology such as Java to build the application software and relational databases to store the data. However, there is an impedance mismatch between object and relational database technologies. With the object paradigm, we navigate from object to object following relationships that are implemented as object references. Whereas in the relational paradigm, operations are set oriented and relationships are implemented using primary keys and foreign keys as symbolic references. Since the underlying technologies are different, the two technologies do not work together seamlessly, which makes working with object-oriented software and a relational database complex, cumbersome and time consuming in developing enterprise applications. |
| |
| |
| To overcome this impedance mismatch, there are several popular solutions to persistent data in relational database with Java, such as Java object serialization, JDBC, Enterprise JavaBean and other Persistence Frameworks. The different solutions have different features for enterprise application development. Therefore, it is essential to find an appropriate solution to meet the enterprise application requirements such as performance, flexibility, transaction, scalability and so on. |
| |
Hibernate is an open source object-relational mapping framework. Hibernate includes some important differences from JDBC and Enterprise JavaBean. Through analysis, comparisons and experiments, it has been widely reported that Hibernate is a better persistence framework than implementing Enterprise JavaBean or straight JDBC. |
| |
|
Advantages of Hibernate over Entity Beans: |
|
 |
Hibernate Beans are easier to implement since you don't need any interface coding. |
|
 |
Queries can be dynamic and perform faster |
|
 |
Hibernate offers a more object-oriented approach. You can map is-a relationships as subclasses. |
|
 |
For data transfer you can use Hibernate Beans as DTOs if you want (and if it's applicable). You can even fill 'custom' DTOs with query results just with one line of code using the select-new construct. |
|
 |
Hibernate will be used as the persistence framework for the shopping platform development. |
|
|
|
|
|