Home » Tag Archives: JBoss Hibernate (page 10)

Tag Archives: JBoss Hibernate

Tutorial: Hibernate, JPA – Part 1

jboss-hibernate-logo

This is the first part of tutorial about using Hibernate and JPA. This part is an introduction to to JPA and Hibernate. The second part will look at putting together a Spring MVC application using Spring ORM to reduce the amount of code necessary to create a CRUD application.  To complete this you’ll want to be familiar with Maven, JUnit, ...

Read More »

Log JDBC operations with Log4jdbc

log4jdbc-logo

When we develop any application, after we finish it or when we end up any of its module, we start optimization process. Most applications contain database access, and if you are using an ORM, probably you will use hibernate. Optimizing hibernate persistence layer,requiresto be prepared to read, understand and evaluate sql. If we take an overview on hibernate configuration, two ...

Read More »

ORM Haters Don’t Get It

jboss-hibernate-logo

I’ve seen tons of articles and comments (especially comments) that tell us how bad, crappy and wrong is the concept of ORM (object-relational mapping). Here are the usual claims, and my comments to them: “they are slow” – there is some overhead in mapping, but it is nothing serious. Chances are you will have much slower pieces of code. “they ...

Read More »

The Future of NoSQL with Java EE

jboss-hibernate-logo

I’ve been following the recent NoSQL momentum since some time now and it seems as if this buzzword also is drawing some kind of attention in the enterprise java world. Namely EclipseLink 2.4 started supporting MongoDB and Oracle NoSQL. Having EclipseLink as the JPA reference implementation you might wonder what this means for Java EE 7. A short side-note here: ...

Read More »

Hibernate Tip: Sort and Order

jboss-hibernate-logo

Let’s introduce another hibernate performance tip. Do you remember the model of previous hibernate post? We had a starship and officer related with a one to many association.                 @Entity public class Starship { @Id @GeneratedValue(strategy=GenerationType.SEQUENCE) private Long id; public Long getId() {return id;} protected void setId(Long id) {this.id = id;} @OneToMany(mappedBy="starship", cascade={CascadeType.ALL}) ...

Read More »

JSF 2, PrimeFaces 3, Spring 3 & Hibernate 4 Integration Project

primefaces-logo

This article shows how to integrate JSF2, PrimeFaces3, Spring3 and Hibernate4 Technologies. It provides a general project template for Java developers. Also if Spring is not used for Business and Data Access layer, JSF – PrimeFaces & Hibernate Integration Project can be offered. Used Technologies : JDK 1.6.0_31 Spring 3.1.1 JSF 2.1 Hibernate 4.1.0 Primefaces 3.1.1 MySQL Connector 5.1.17 MySQL ...

Read More »

Hibernate Performance Tips: Dirty Collection Effect

jboss-hibernate-logo

After 8 years developing server and embedded applications using Hibernate as ORM, squeezing my brain seeking solutions to improve Hibernate performance, reading blogs and attending conferences, I decided to share this knowledge acquired during these years with you. This is the first post of many more posts to come: Last year I went to Devoxx as speaker but also I ...

Read More »

Problems with ORMs Part 2 – Queries

jboss-hibernate-logo

In my previous post on Object-Relational Mapping tools (ORMs), I discussed various issues that I’ve faced dealing with the common ORMs out there today, including Hibernate. This included issues related to generating a schema from POJOs, real-world performance and maintenance problems that crop up. Essentially, the conclusion is that ORMs get you most of the way there, but a balanced ...

Read More »

Hibernate cache levels tutorial

jboss-hibernate-logo

One of the common problems of people that start using Hibernate is performance, if you don’t have much experience in Hibernate you will find how quickly your application becomes slow. If you enable sql traces, you would see how many queries are sent to database that can be avoided with little Hibernate knowledge. In current post I am going to ...

Read More »

Enabling JMX in Hibernate, EhCache, Quartz, DBCP and Spring

apache-commons-dbcp-logo

Continuing our journey with JMX (see: JMX for human beings) we will learn how to enable JMX support (typically statistics and monitoring capabilities) in some popular frameworks. Most of this information can be found on project’s home pages, but I decided to collect it with few the addition of some useful tips. Hibernate (with Spring support) Exposing Hibernate statistics with ...

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