vraptor-hibernate

Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/

Лицензия

Лицензия

Категории

Категории

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

Группа

br.com.caelum.vraptor
Идентификатор

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

vraptor-hibernate
Последняя версия

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

4.1.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

vraptor-hibernate
Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/
Ссылка на сайт

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

http://maven.apache.org
Организация-разработчик

Организация-разработчик

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

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

http://github.com/caelum/vraptor-hibernate

Скачать vraptor-hibernate

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

<!-- https://jarcasting.com/artifacts/br.com.caelum.vraptor/vraptor-hibernate/ -->
<dependency>
    <groupId>br.com.caelum.vraptor</groupId>
    <artifactId>vraptor-hibernate</artifactId>
    <version>4.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/br.com.caelum.vraptor/vraptor-hibernate/
implementation 'br.com.caelum.vraptor:vraptor-hibernate:4.1.0'
// https://jarcasting.com/artifacts/br.com.caelum.vraptor/vraptor-hibernate/
implementation ("br.com.caelum.vraptor:vraptor-hibernate:4.1.0")
'br.com.caelum.vraptor:vraptor-hibernate:jar:4.1.0'
<dependency org="br.com.caelum.vraptor" name="vraptor-hibernate" rev="4.1.0">
  <artifact name="vraptor-hibernate" type="jar" />
</dependency>
@Grapes(
@Grab(group='br.com.caelum.vraptor', module='vraptor-hibernate', version='4.1.0')
)
libraryDependencies += "br.com.caelum.vraptor" % "vraptor-hibernate" % "4.1.0"
[br.com.caelum.vraptor/vraptor-hibernate "4.1.0"]

Зависимости

compile (3)

Идентификатор библиотеки Тип Версия
org.hibernate : hibernate-core jar 5.2.9.Final
br.com.caelum : vraptor jar 4.2.0-RC5
javax.enterprise : cdi-api jar 1.1

provided (1)

Идентификатор библиотеки Тип Версия
org.mortbay.jetty : servlet-api jar 3.0.20100224

test (5)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.10
org.mockito : mockito-core jar 1.8.5
org.hamcrest : hamcrest-core jar 1.2
org.hamcrest : hamcrest-library jar 1.2
hsqldb : hsqldb jar 1.8.0.10

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

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

VRaptor Hibernate Plugin

Build status

VRaptor Hibernate Plugin provides support to use with Hibernate 4.

How to install?

You only need to copy the jar to your classpath. VRaptor will register plugin when your application starts without any configurations. Downloads are available in downloads area or in Maven Repository:

<dependency>
  <groupId>br.com.caelum.vraptor</groupId>
  <artifactId>vraptor-hibernate</artifactId>
  <version>4.0.0.Final</version> <!-- or the latest version -->
</dependency>

Transactional Control

The default behavior is that each request will have a transaction available.

If you want, you can enable a decorator to change this behavior.

When enabled, it will open transactions only for methods with @Transactional annotation.

To do that you just need to add the follow content into your project's beans.xml:

<decorators>
    <class>br.com.caelum.vraptor.hibernate.TransactionDecorator</class>
</decorators>

Extra Configurations

If you want to add some custom configuration in org.hibernate.cfg.Configuration, extend the br.com.caelum.vraptor.hibernate.ConfigurationCreator class and override the protected void extraConfigurations(Configuration configuration) method. You need to annotate your extended class with @Specializes annotation.

@Specializes
public class MyConfigurationCreator extends ConfigurationCreator {
	@Override
	protected void extraConfigurations(Configuration configuration) {
		configuration.setInterceptor(new MyHibernateInterceptor());
	}
}
br.com.caelum.vraptor

Caelum

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

Версия
4.1.0
4.0.4
4.0.3
4.0.2
4.0.0.Final
4.0.0-RC2
1.0.1
1.0.0