Log in to follow, share, and participate in this community.
Article Hibernate Compatibility Matrix
Hibernate Compatibility MatrixThis page is out of date: content has moved there for Hibernate ORM.there for Hibernate Search,there for Hibernate Validator, and there for Hibernate OGM. Please note that as of 3.5.x Hibernate Core, Hibernate Annota...
Article This content is obsolete - go to https://hibernate.org/community/
This content is obsolete - go to https://hibernate.org/community/The Hibernate-related content on https://developer.jboss.org/ is mostly obsolete and will no longer be updated. For links to up-to-date documentation and ways to discuss Hibernate projects, please see https://...
Hibernate Core Migration Guide : 4.0This document is a work in progress as we develop 4.0 Initial move to ServiceRegistry. For now, see design wikis or sources for more information. Not all "services" have been migrated to this model...
Hibernate Core Migration Guide : 5.0This document is a work in progress as we develop 5.0 1. Deprecated classes/interfaces that have been removed: 1.1 HHH-7712 : EntityTuplizer#instantiate(Serializable id) / rese...
Article UserType for persisting an Enum with a VARCHAR column
UserType for persisting an Enum with a VARCHAR columnUserType for persisting an Enum with a VARCHAR column The following code is a 'template' to easy Enum (Java 1.5) mapping. See also https://community.jboss.org/wiki/Java5EnumUserType import java.io.Serializable;
impo...
Java 5 EnumUserTypeHibernate 3 Parameterized type for mapping a Java 5 Enum. This allows you to avoid the need to define a concrete UserType instance for every enum that you have. Just create a new typedef for each one, giving it a uniq...
LazyInitializationException overcomeIn Hibernate, relationships can be defined so that they are "lazily initialized"; i.e., the relationship is only initialized when it is determined that the information contained in the additional table is needed. This...
Hibernate & Sybase integrationThis wiki is for recording the issues we found when using hibernate on Sybase. hibernate source: core: https://github.com/hibernate/hibernate-orm testing environment info: OS: RHEL 5 (if you're ...
Generic Data Access ObjectsThe DAO interfaces
An implementation with Hibernate
Preparing DAOs with factories
Preparing DAOs with manual dependency injection
Preparing DAOs with lookup
Writing DAOs as managed EJB 3.0 componen...
Publishing statistics through JMXGenerality
Publish a per JNDI JMX MBean
Publish a per session factory JMX MBean
Having a JMX infrastructure when the application is standalone
JMX clients for the statistics MBean
Enable RMI publis...
Open Session in ViewSessions and transactions is required reading to understand this pattern. This page describes Hibernate 3.1.x and code shown here does not work in older versions.
The problem
Using an interceptor
What ...
Sessions and transactionsThis page explains common techniques to deal with the Session and transactions in Hibernate applications. Refer to the Hibernate reference documentation and the "Transactions and Concurrency" chapter for more informat...
Supported Databases2This page is maintained by the Hibernate user community! See JBoss Enterprise Application Platform supported configurations if you are looking for database management systems and drivers that have been certified by J...
Maybe bug in the documentationHi to all. I was taking a look to the hibernate docs. I was worried about the example in the link: Chapter 6. Entity listeners and Callback methods
@Entity
@EntityListeners(class=Audit.class)
pub...
Java 5 StringValuedEnumUserTypeHibernate 3 Parameterized type for mapping a Java 5 Enum with string values. This allows you to avoid the need to define a concrete UserType instance for every enum that you have. Just create a new typedef for each on...
Equals and HashCodeJava's Collections and Relational database (and thus Hibernate) relies heavily on being able to distinguish objects in a unified way. In Relational database's this is done with primary keys, in Java we have equals() a...
Two Sessionfactories with two databasesHi there, im using Hibernate 4 and have an architecture with two databases. Therefor i have two session-factories. What i want to do now, and that drives me nuts is the following. I have Entity A from DB A and Entity...