Tags » Hibernate

Kick-Start

Thunder claps slap me in my stomach and heart

the sound so loud I can feel it’s power to my core

the rain is disjointed, fragmented and like nails…

104 more words
Kait King

Hibernate : How to resolve "org.hibernate.PersistentObjectException: detached entity passed to persist" error ?

This error may occur in two situations, look below:

Do you have an object and one of his attributes has the value an another object. This other object are detached, so don’t have more data from this other object in the hibernate proxy. 102 more words

Tips

Spring Hibernate Integration Example (Spring 4 + Hibernate 4)

Workspace

Entity

package org.srm.spring.hiber.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
* @author ANBU
*
*/
@Entity
@Table(name = “Person”) 582 more words

Spring

Persistent Class

Persistent Class is Plain Old Java Object (POJO) class. There are following main rules of persistent classes,

  • Define no-arg constructor.
  • All attributes that will be persisted should be declared private and have getXXX and setXXX methods and define one…
  • 34 more words
JAVA

Hibernate Architecture

  • Configuration Interface :- Configuration object reates only once during application initialization. Configuration  loads *.cfg.xml or *.properties  *.hbm.xml  for connection between the Java classes and database tables.
  • 215 more words
JAVA

The High-Performance Java Persistence book

A book in the making

It’s been a year since I started the quest for a highly-effective Data Knowledge Stack and the Hibernate Master Class… 252 more words

Hibernate