Home » Tag Archives: JBoss Hibernate (page 11)

Tag Archives: JBoss Hibernate

Full Web Application Tomcat JSF Primefaces JPA Hibernate – Part 2

primefaces-logo

ManagedBeans This post continues from part 1 of this tutorial. In the “com.mb” package you will need to create the classes bellow:             package com.mb; import org.primefaces.context.RequestContext; import com.util.JSFMessageUtil; public class AbstractMB { private static final String KEEP_DIALOG_OPENED = 'KEEP_DIALOG_OPENED'; public AbstractMB() { super(); } protected void displayErrorMessageToUser(String message) { JSFMessageUtil messageUtil = new JSFMessageUtil(); messageUtil.sendErrorMessageToUser(message); ...

Read More »

Load or Save Image using Hibernate – MySQL

jboss-hibernate-logo

This tutorial will walk you throughout how to save and load an image from database (MySQL) using Hibernate. Requirements For this sampel project, we are going to use: Eclipse IDE (you can use your favorite IDE); MySQL(you can use any other database, make sure to change the column type if required); Hibernate jars and dependencies (you can download the sample ...

Read More »

Tutorial: Hibernate, JPA & Spring MVC – Part 2

spring-interview-questions-answers

This tutorial will show you how to take a basic Hibernate/JPA app, convert it into a Spring MVC web project to be able to view the database in a web browser, and finally use Spring’s @Transactional annotation to reduce boiler plate code. This tutorial assumes you’re familiar with Java and Maven, and that you’ve completed the first part of this ...

Read More »

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 »
Want to take your Java Skills to the next level?
Grab our programming books for FREE!
  • Save time by leveraging our field-tested solutions to common problems.
  • The books cover a wide range of topics, from JPA and JUnit, to JMeter and Android.
  • Each book comes as a standalone guide (with source code provided), so that you use it as reference.
Last Step ...

Where should we send the free eBooks?

Good Work!
To download the books, please verify your email address by following the instructions found on the email we just sent you.