Home » Tag Archives: JBoss Hibernate (page 5)

Tag Archives: JBoss Hibernate

The minimal configuration for testing Hibernate

jboss-hibernate-logo

Introduction In my previous post I announced my intention of creating a personal Hibernate course. The first thing to start with is a minimal testing configuration. The examples are relevant for Hibernate 4. You only need Hibernate In a real production environment you won’t use Hibernate alone, as you may integrate it in a JEE or Spring container. For testing ...

Read More »

Spring/Hibernate improved SQL logging with log4jdbc

jboss-hibernate-logo

Hibernate provides SQL logging out of the box, but such logging only shows prepared statements, and not the actual SQL queries sent to the database. It also does not log the execution time of each query, which is useful for performance troubleshooting. This blog post will go over how to setup Hibernate query logging, and then compare it to the ...

Read More »

Performance Tuning of Spring/Hibernate Applications

jboss-hibernate-logo

For most typical Spring/Hibernate enterprise applications, the application performance depends almost entirely on the performance of it’s persistence layer. This post will go over how to confirm that we are in presence of a ‘database-bound’ application, and then walk through 7 frequently used ‘quick-win’ tips that can help improve application performance. How to confirm that an application is ‘database-bound’ To ...

Read More »

Careful With Native SQL in Hibernate

jboss-hibernate-logo

I really like Hibernate, but I also don’t know a tool that would be nearly as powerful and deceptive at the same time. I could write a book on surprises in production and cargo cult programming related to Hibernate alone. It’s more of an issue with the users than with the tool, but let’s not get too ranty. So, here’s ...

Read More »

Postgres and Oracle compatibility with Hibernate

jboss-hibernate-logo

There are situations your JEE application needs to support Postgres and Oracle as a Database. Hibernate should do the job here, however there are some specifics worth mentioning. While enabling Postgres for application already running Oracle I came across following tricky parts: BLOBs support, CLOBs support, Oracle not knowing Boolean type (using Integer) instead and DUAL table. These were the ...

Read More »

Building Java Web Application Using Hibernate With Spring

jboss-hibernate-logo

This post will show how to create a Student Enrollment Application using MYSQL DB with Hibernate ORM in a Spring environment. This is a simple application that aims to collect the input details from the user during signup, save the details in the MYSQL DB and authenticate the same during login. 1. Create Java Web Application Project using Maven Template ...

Read More »

Hibernate Facts: How to “assert” the SQL statement count

jboss-hibernate-logo

Introduction Hibernate simplifies CRUD operations, especially when dealing with entity graphs. But any abstraction has its price and Hibernate is no different. I’ve already talked about the importance of fetching strategy and knowing your Criteria SQL queries, but there is more you can do to rule over JPA. This post is about controlling the SQL statement count that Hibernate calls ...

Read More »

Grails: Using Hibernate Filters

grails-logo

The Grails Hibernate Filters plugin makes it possible to use Hibernate Filters with GORM. Hibernate Filters provide additional restriction rules that can be applied to classes and collections. The Hibernate Filters plugin makes it possible to use this functionality with GORM inside Grails applications. Let’s look at an example to see how filters can help us. Assume we have the ...

Read More »

Hibernate: DDL Schema generation

jboss-hibernate-logo

Not so long time ago I have to work with in-memory database. This activity was related to integration testing. As you know, it is a normal practice to use in-memory data bases for the integration testing. There are several reasons for this: portability, well grained environment infrastructure, high performance, consistency of original data base. The problem is a coppying of ...

Read More »

Hibernate 4.3 ORM Tool

jboss-hibernate-logo

Hibernate has recently released the final version of Hibernate ORM 4.3, a Java-based ORM framework that also supports stored procedures and entity graphs. ORM Tool Hibernate 4.3 Released, Implementing JPA 2.1 Specification introduces the main features of the release, which are in short: Support for working with stored procedure and function calls, across both providers and database vendors. UPDATE and ...

Read More »
Do you want to know how to develop your skillset and become a ...

Subscribe to our newsletter to start Rocking right now!

To get you started we give you our best selling eBooks for FREE!
Get ready to Rock!
To download the books, please verify your email address by following the instructions found on the email we just sent you.

THANK YOU!

Close