JavaBeat

  • Home
  • Java
    • Java 7
    • Java 8
    • Java EE
    • Servlets
  • Spring Framework
    • Spring Tutorials
    • Spring 4 Tutorials
    • Spring Boot
  • JSF Tutorials
  • Most Popular
    • Binary Search Tree Traversal
    • Spring Batch Tutorial
    • AngularJS + Spring MVC
    • Spring Data JPA Tutorial
    • Packaging and Deploying Node.js
  • About Us
    • Join Us (JBC)
  • Privacy

How to Solve QuerySyntaxException in Hibernate?

September 26, 2015 by Krishna Srinivasan Leave a Comment

If you are working on hibernate, getting QuerySyntaxException is very common if there is any issue with the query which you are trying to execute in your code. This QuerySyntaxException is more generic and it would throw different types of error messages based on the issue with the query. In this post I would update my experience […]

Filed Under: Hibernate Tagged With: Hibernate Exceptions

Hibernate / JPA – Detached entity passed to persist exception

April 21, 2015 by Krishna Srinivasan Leave a Comment

You are here because you have just thrown out by your application with this annoying exception : javax.persistence.PersistenceException: org.hibernate.PersistentObjectException: detached entity passed to persist. There are multiple reasons that could cause this exception. But, basic idea behind this exception is that the object which you are trying to persist is not in the persistant state. […]

Filed Under: Hibernate Tagged With: Hibernate Exceptions

Introduction to Hibernate Envers

April 21, 2015 by Akash Agrawal Leave a Comment

Hibernate Envers is a library that helps us to easily achieve audit functionality. It aims to enable easy auditing/versioning of persistent classes/entities. It provides a built in mechanism to maintain history of tables in Hibernate. Hibernate Envers has been created by Adam Warski. From Hibernate 3.5, Envers is part of core module. Envers works in a similar fashion to Version […]

Filed Under: Hibernate Tagged With: Hibernate Envers

JPA Vs Hibernate

December 29, 2013 by Krishna Srinivasan Leave a Comment

I have come across this question from many of our readers and who ever working on the hibernate framework : What is the difference between Java Persistence API (JPA) and Hibernate ORM Framework. This post simply answer to those who are confusing with JPA and Hibernate difference. JPA and Hibernate Difference JPA is a specification for […]

Filed Under: Hibernate, Java Tagged With: Hibernate 4 Tutorials, JPA 2 Tutorials

How To Create EntityManagerFactory in JPA

December 28, 2013 by Krishna Srinivasan Leave a Comment

This tutorial explains how to create EntityManagerFactory in your JPA application when you are writing your first JPA programming. It is the standard way of creating the factory if you use the JPA specification. Normally there are two ways to create the factory, one is through the configuration file persistence.xml and another one is through the […]

Filed Under: Hibernate Tagged With: Hibernate 4 Tutorials, JPA 2 Tutorials

JPA EntityManagerFactory Vs Hibernate’s SessionFactory

December 28, 2013 by Krishna Srinivasan Leave a Comment

If you are using the JPA’s standard specification implementation (Read : Introduction to JPA), then you would use EntityManagerFactory for opening the session. But, if you are using the hibernate implementation, you have hibernate specific SessionFactory for managing the sessions. Here there is lot of confusion between developers like which one is the best approach. […]

Filed Under: Hibernate Tagged With: Hibernate 4 Tutorials, JPA 2 Tutorials

JPA 2 MetaModel Generator using Ant

December 27, 2013 by Krishna Srinivasan Leave a Comment

In my previous article I have explained how to generate metamodel using your Eclipse IDE. However, in most scenarios you will have to create from your build scripts. This tutorial explains how to add this option in your ant script. For the detailed explanation on project example code, please refer the previous post. Here I […]

Filed Under: Hibernate Tagged With: Apache Ant, Hibernate 4 Tutorials, JPA 2 Tutorials

JPA 2 MetaModel Generation using Eclipse

December 27, 2013 by Krishna Srinivasan Leave a Comment

JPA 2.0 introduces the strongly typed Criteria API for going away with the Java Persistence Query (JQL) language. It comes with the metamodel for helping the typed objects. Every entity must have a meta model generated with underscore(_) added to its name. These objects will be referred in the Criteria API instead of using the […]

Filed Under: Hibernate Tagged With: Eclipse Tips, Hibernate 4 Tutorials, JPA 2 Tutorials

Hibernate 4 Basic Configuration + Setup Example

December 25, 2013 by Krishna Srinivasan Leave a Comment

This tutorial explains the very basic configuration and installation of hibernate configuration for your project. It is a standalone program, but the same configuration would applicable for the web applications. Here I am using the XML configuration approach, I will write another tutorial for using the annotations. Here I assume that you have installed the […]

Filed Under: Hibernate Tagged With: Hibernate 4 Tutorials

How To Create Session Factory in Hibernate 4

December 25, 2013 by Krishna Srinivasan Leave a Comment

There are many APIs deprecated in the hibernate core framework. One of the frustrating point at this time is, hibernate official documentation is not providing the clear instructions on how to use the new API and it stats that the documentation is in complete. Also each incremental version gets changes on some of the important […]

Filed Under: Hibernate Tagged With: Deprecated, Hibernate 4 Tutorials

  • 1
  • 2
  • 3
  • …
  • 6
  • Next Page »

Follow Us

  • Facebook
  • Pinterest
JavaBeat

FEATURED TUTORIALS

Servlet Life Cycle: Explanation

Servlet Life Cycle: Explanation

What is new in Java 6.0 Collections API?

The Java 6.0 Compiler API

The Java 6.0 Compiler API

Copyright © by JavaBeat · All rights reserved

This website uses cookies to ensure you get the best experience on our website. Learn more.