Home » Tag Archives: JBoss Hibernate (page 5)

Tag Archives: JBoss Hibernate

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 »

Workshop on Creating a Personal MusicManager Web Application with Struts2, Hibernate and MySQL

jboss-hibernate-logo

Overview: In this workshop tutorial we’ll develop a personal music manager application using Struts 2, Hibernate and MySQL database. The web application can be used to add your music collection to the database. We’ll display form to add the record and underneath we’ll show all the music collections. From each row the record can be deleted by clicking ‘Delete’ link. ...

Read More »

Hibernate Facts: Always check Criteria API SQL queries

java-interview-questions-answers

Criteria API is very useful for dynamically building queries, but that’s the only use case where I’d use it. Whenever you have an UI with N filters that may arrive in any M combinations, it makes sense to have an API to construct queries dynamically, since concatenating strings is always a path I’m running away from. The question is, are ...

Read More »

Hibernate Facts: Integration testing strategies

jboss-hibernate-logo

I like Integration Testing, it’s a good way to check what SQL queries Hibernate generates behind-scenes. But Integration Tests require a running database server, and this is the first choice you have to make. 1. Using a production-like local database server for Integration Testing For a production environment I always prefer using incremental DDL scripts, since I can always know ...

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