submited by krishnas on Thu May 22nd, 2008
hibernate java5
Hibernate EntityManager implements the programming interfaces and lifecycle rules as defined by the EJB3 persistence specification. Together with Hibernate Annotations, this wrapper implements a complete (and standalone) EJB3 persistence solution on top of the mature Hibernate core. In this post I will describe how map native queries (plain SQL) using Hibernate Annotations. Hibernate Annotations supports the use of Native queries through the @NamedNativeQuery and the @SqlResultSetMapping annotations....
more »
submited by krishnas on Thu May 22nd, 2008
spring hibernate
The Spring framework provides extensive support for data access through the use of support classes (JdbcDaoSupport, JdbcTemplate etc.), and extensive exception hierarchy to wrap any platform specific SQLException into an exception in the spring exception hierarchy. Additionally Spring framework also provides good support for integrating with ORM technologies like Hibernate and iBatis etc. This post will show how to integrate Spring framework with Hibernate ORM. There's more...
more »
submited by krishnas on Thu May 22nd, 2008
spring hibernate
In the previous post, I described different ways in which spring and hibernate can
be integrated. In this post I will describe how to use Spring's transaction features
in hibernate. The following methods of transaction management with spring and hibernate are discussed....
more »
submited by krishnas on Thu Mar 27th, 2008
hibernate google-guice
In this Blog you will see how to add Google-Guice functionality to a Hibernate-Application. In Part I i will introduce a simple Hibernate-Application. In Part II you can see how this Application will be transformed for using Guice....
more »
submited by krishnas on Thu Mar 27th, 2008
hibernate java java5
This is the ant task I’m using to generate POJO and mapping files from a DB Schema (mysql)....
more »
submited by krishnas on Wed Mar 26th, 2008
spring hibernate ejb j2ee
Java EE 5 provides all the features you need to build a robust enterprise application right in an EJB 3.0 container, but incorporating the relative strengths of Spring and Hibernate can further improve the productivity and quality of your application....
more »
submited by krishnas on Thu Nov 29th, 2007
hibernate
By far, the most common approach for mapping your model into Hibernate is via XML configuration. It's common to see a configuration that looks something like this:...
more »
submited by krishnas on Thu Nov 29th, 2007
hibernate
Hibernate, in the end, is all about dispatching SQL statements. SQL is at the heart of communication with an RDBMS system, and it is extremely important when struggling through performance problems or other bugs, that you know what is going on. After all, knowing the executed SQL allows you to determine the number of queries to complete an O/R mapping task, not to mention that seeing SQL queries is critical to understanding how to optimize the queries via indices and other database settings....
more »
submited by krishnas on Fri Nov 16th, 2007
hibernate jsf
We have some queries that can potentially return a large set of data. The first pass at this put all of the data into HttpSession and allowed a non-standard h:dataGrid like component automatically do the pagination. This works fairly well for small results sets but not so well for larger result sets as it consumes too much memory and takes a while for the first page to load. (The fancy h:dataGrid like component also automatically does sorting.)...
more »
submited by krishnas on Wed Sep 26th, 2007
hibernate
The Hibernate Search team is pleased to announce version 3.0 final. Hibernate Search provides full text search (google-like) capabilities to Hibernate domain model objects. Based on Apache Lucene, Hibernate Search focuses on ease of use and ease of configuration, lowering the barrier to entry of Lucene and its integration with a domain model....
more »