Hibernate: Paving the Path for Queries
In the second part of our series on Hibernate, we will take a close look at its architecture and core classes. We will also cover the different types of queries possible in Hibernate. Finally, we'll use a real world example to illustrate our discussion.
Introducing Hibernate
Databases are complex to implement. This is especially true when components of a database based on two different approaches (i.e. object oriented vs. relational) must interact with each other. Object Relational Mapping (ORM) frameworks can act as mediators between the two approaches. Hibernate, the topic of this article, is an ORM framework for Java.
Support of Custom Fields with Hibernate
When developing corporate-level business applications (Enterprise Scale) customers often requires implementing support for extensibility of the application object model not modifying the system source code. Use of extensible domain model allows for development of new functionality without additional effort and overheads:
1) the application will be used for a more lengthy period
2) the system workflow can be modified over time when changing external factors
3) “setting” the application to fit specifics of an enterprise where it has been deployed.
The most simple and cost effective way to achieve the required functionality would be implementing extensible business entities in an application with the support of custom fields.
Our implementation given at http://techzone.enterra-inc.com/?p=8 is differ from well known due to changes into Hibernate configuration so feel free to use it.
Use Stored Procedures for Java Persistence
Find out why you should use stored procedures to build your Java persistence layer instead of embedded SQL, entity beans, or tools such as Hibernate. Then learn how to do it.
When Hibernate meets Spring
This article covers integrating Hibernate transactions with Spring aspect-oriented programming (AOP). The result is a persistence framework you can count on.
Oracle Magazine contains technology-strategy articles, sample code, tips, Oracle and partner news, an all-new Oracle Developer section for Java developers, and more.
subscribe now