JavaEtMoi Core :: javaetmoi-hibernate3-hydrate - jar

Avoid Hibernate LazyInitializationException by recursively resolving proxy (supports Hibernate 3.x)

Лицензия

Лицензия

Категории

Категории

Hibernate Данные ORM
Группа

Группа

com.javaetmoi.core
Идентификатор

Идентификатор

javaetmoi-hibernate3-hydrate
Последняя версия

Последняя версия

2.2
Дата

Дата

Тип

Тип

jar
Описание

Описание

JavaEtMoi Core :: javaetmoi-hibernate3-hydrate - jar
Avoid Hibernate LazyInitializationException by recursively resolving proxy (supports Hibernate 3.x)
Ссылка на сайт

Ссылка на сайт

https://github.com/arey/hibernate-hydrate
Система контроля версий

Система контроля версий

https://github.com/arey/hibernate-hydrate

Скачать javaetmoi-hibernate3-hydrate

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.javaetmoi.core/javaetmoi-hibernate3-hydrate/ -->
<dependency>
    <groupId>com.javaetmoi.core</groupId>
    <artifactId>javaetmoi-hibernate3-hydrate</artifactId>
    <version>2.2</version>
</dependency>
// https://jarcasting.com/artifacts/com.javaetmoi.core/javaetmoi-hibernate3-hydrate/
implementation 'com.javaetmoi.core:javaetmoi-hibernate3-hydrate:2.2'
// https://jarcasting.com/artifacts/com.javaetmoi.core/javaetmoi-hibernate3-hydrate/
implementation ("com.javaetmoi.core:javaetmoi-hibernate3-hydrate:2.2")
'com.javaetmoi.core:javaetmoi-hibernate3-hydrate:jar:2.2'
<dependency org="com.javaetmoi.core" name="javaetmoi-hibernate3-hydrate" rev="2.2">
  <artifact name="javaetmoi-hibernate3-hydrate" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.javaetmoi.core', module='javaetmoi-hibernate3-hydrate', version='2.2')
)
libraryDependencies += "com.javaetmoi.core" % "javaetmoi-hibernate3-hydrate" % "2.2"
[com.javaetmoi.core/javaetmoi-hibernate3-hydrate "2.2"]

Зависимости

compile (5)

Идентификатор библиотеки Тип Версия
org.hibernate.javax.persistence : hibernate-jpa-2.0-api jar 1.0.0.Final
org.hibernate : hibernate-core jar 3.6.9.Final
org.hibernate : hibernate-entitymanager jar 3.6.9.Final
javassist : javassist jar 3.12.0.GA
ch.qos.logback : logback-classic jar 1.0.0

test (8)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.10
org.springframework : spring-orm jar 3.1.1.RELEASE
org.springframework : spring-test jar 3.1.1.RELEASE
com.h2database : h2 jar 1.3.164
org.dbunit : dbunit jar 2.4.8
org.unitils : unitils-core jar 3.3
org.apache.commons : commons-lang3 jar 3.0.1
net.sf.ehcache : ehcache-core jar 2.5.1

Модули Проекта

Данный проект не имеет модулей.

Hibernate Hydrate

Build Status Maven Central

The primary goal of the Hibernate Hydrate project is to populate a graph of persistent entities and thus avoid the famous LazyInitializationException.

Features

  • Utility class to populate a lazy-initialized object graph by recursivity
  • Supports JPA with Hibernate as provider
  • Supports third Hibernate 3.x, Hibernate 4.x and Hibernate 5.x

Getting Help

This readme file as well as the wiki are the best places to start learning about Hibernate Hydrate. There are also unit tests available to look at.

The wiki contains links to basic project information such as source code, jenkins build, javadocs, issue tracking, etc.

A french article titled Say goodbye to LazyInitializationException : http://javaetmoi.com/2012/03/hibernate-dites-adieu-aux-lazy-initialization-exception/

Quick Start

Download the jar though Maven:

<!-- Either Hibernate 5.2 and above support -->
<dependency>
  <groupId>com.javaetmoi.core</groupId>
  <artifactId>javaetmoi-hibernate5-hydrate</artifactId>
  <version>5.2.2</version>
</dependency> 

<!-- or Hibernate 5.0 and 5.1 support -->
<dependency>
  <groupId>com.javaetmoi.core</groupId>
  <artifactId>javaetmoi-hibernate5-hydrate</artifactId>
  <version>2.3</version>
</dependency> 

<!-- or Hibernate 4 support -->
<dependency>
  <groupId>com.javaetmoi.core</groupId>
  <artifactId>javaetmoi-hibernate4-hydrate</artifactId>
  <version>2.2</version>
</dependency> 

<!-- Or Hibernate 3 support -->
<dependency>
  <groupId>com.javaetmoi.core</groupId>
  <artifactId>javaetmoi-hibernate3-hydrate</artifactId>
  <version>2.2</version>
</dependency> 

Hybernate Hydrate artefacts are available from Maven Central

Maven Central

Contributing to Hibernate Hydrate

  • Github is for social coding platform: if you want to write code, we encourage contributions through pull requests from forks of this repository. If you want to contribute code this way, please reference a GitHub ticket as well covering the specific issue you are addressing.
  • Each major version of Hibernate has it own git branch: Hibernate 5 on the master, Hibernate 4 on the hibernate4 branch and Hibernate 3 on the hibernate3 branch

Development environment installation

Download the code with git:

git clone git://github.com/arey/hibernate-hydrate.git

Compile the code with maven:

mvn clean install

If you're using an IDE that supports Maven-based projects (InteliJ Idea, Netbeans or m2Eclipse), you can import the project directly from its POM. Otherwise, generate IDE metadata with the related IDE maven plugin:

mvn eclipse:clean eclipse:eclipse

Credits

Build Status

Travis: Build Status

Версии библиотеки

Версия
2.2
1.3