hibernate and other maven upgrades

This commit is contained in:
eugenp 2013-08-19 21:34:24 +03:00
parent 8b6a612e6c
commit e412b13818
23 changed files with 37 additions and 52 deletions

View File

@ -249,7 +249,7 @@
<org.springframework.security.version>3.1.4.RELEASE</org.springframework.security.version> <org.springframework.security.version>3.1.4.RELEASE</org.springframework.security.version>
<!-- persistence --> <!-- persistence -->
<hibernate.version>4.2.3.Final</hibernate.version> <hibernate.version>4.2.4.Final</hibernate.version>
<mysql-connector-java.version>5.1.26</mysql-connector-java.version> <mysql-connector-java.version>5.1.26</mysql-connector-java.version>
<!-- logging --> <!-- logging -->
@ -276,7 +276,7 @@
<!-- Maven plugins --> <!-- Maven plugins -->
<cargo-maven2-plugin.version>1.4.3</cargo-maven2-plugin.version> <cargo-maven2-plugin.version>1.4.3</cargo-maven2-plugin.version>
<maven-surefire-plugin.version>2.15</maven-surefire-plugin.version> <maven-surefire-plugin.version>2.16</maven-surefire-plugin.version>
</properties> </properties>
</project> </project>

View File

@ -188,7 +188,7 @@
<jstl.version>1.2</jstl.version> <jstl.version>1.2</jstl.version>
<!-- persistence --> <!-- persistence -->
<hibernate.version>4.2.3.Final</hibernate.version> <hibernate.version>4.2.4.Final</hibernate.version>
<mysql-connector-java.version>5.1.26</mysql-connector-java.version> <mysql-connector-java.version>5.1.26</mysql-connector-java.version>
<!-- logging --> <!-- logging -->
@ -215,7 +215,7 @@
<!-- Maven plugins --> <!-- Maven plugins -->
<cargo-maven2-plugin.version>1.4.3</cargo-maven2-plugin.version> <cargo-maven2-plugin.version>1.4.3</cargo-maven2-plugin.version>
<maven-surefire-plugin.version>2.15</maven-surefire-plugin.version> <maven-surefire-plugin.version>2.16</maven-surefire-plugin.version>
</properties> </properties>
</project> </project>

View File

@ -227,7 +227,7 @@
<!-- Maven plugins --> <!-- Maven plugins -->
<cargo-maven2-plugin.version>1.4.3</cargo-maven2-plugin.version> <cargo-maven2-plugin.version>1.4.3</cargo-maven2-plugin.version>
<maven-surefire-plugin.version>2.15</maven-surefire-plugin.version> <maven-surefire-plugin.version>2.16</maven-surefire-plugin.version>
</properties> </properties>
</project> </project>

View File

@ -191,7 +191,7 @@
<!-- Maven plugins --> <!-- Maven plugins -->
<cargo-maven2-plugin.version>1.4.3</cargo-maven2-plugin.version> <cargo-maven2-plugin.version>1.4.3</cargo-maven2-plugin.version>
<maven-surefire-plugin.version>2.15</maven-surefire-plugin.version> <maven-surefire-plugin.version>2.16</maven-surefire-plugin.version>
</properties> </properties>
</project> </project>

View File

@ -199,7 +199,7 @@
<!-- Maven plugins --> <!-- Maven plugins -->
<cargo-maven2-plugin.version>1.4.3</cargo-maven2-plugin.version> <cargo-maven2-plugin.version>1.4.3</cargo-maven2-plugin.version>
<maven-surefire-plugin.version>2.15</maven-surefire-plugin.version> <maven-surefire-plugin.version>2.16</maven-surefire-plugin.version>
</properties> </properties>
</project> </project>

View File

@ -3,16 +3,11 @@ package org.baeldung.persistence.dao.impl;
import org.baeldung.persistence.dao.IChildDao; import org.baeldung.persistence.dao.IChildDao;
import org.baeldung.persistence.dao.common.AbstractHibernateDao; import org.baeldung.persistence.dao.common.AbstractHibernateDao;
import org.baeldung.persistence.model.Child; import org.baeldung.persistence.model.Child;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;
@Repository @Repository
public class ChildDao extends AbstractHibernateDao<Child> implements IChildDao { public class ChildDao extends AbstractHibernateDao<Child> implements IChildDao {
@Autowired
private SessionFactory sessionFactory;
public ChildDao() { public ChildDao() {
super(); super();

View File

@ -3,16 +3,11 @@ package org.baeldung.persistence.dao.impl;
import org.baeldung.persistence.dao.IFooDao; import org.baeldung.persistence.dao.IFooDao;
import org.baeldung.persistence.dao.common.AbstractHibernateDao; import org.baeldung.persistence.dao.common.AbstractHibernateDao;
import org.baeldung.persistence.model.Foo; import org.baeldung.persistence.model.Foo;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;
@Repository @Repository
public class FooDao extends AbstractHibernateDao<Foo> implements IFooDao { public class FooDao extends AbstractHibernateDao<Foo> implements IFooDao {
@Autowired
private SessionFactory sessionFactory;
public FooDao() { public FooDao() {
super(); super();

View File

@ -3,16 +3,11 @@ package org.baeldung.persistence.dao.impl;
import org.baeldung.persistence.dao.IParentDao; import org.baeldung.persistence.dao.IParentDao;
import org.baeldung.persistence.dao.common.AbstractHibernateDao; import org.baeldung.persistence.dao.common.AbstractHibernateDao;
import org.baeldung.persistence.model.Parent; import org.baeldung.persistence.model.Parent;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;
@Repository @Repository
public class ParentDao extends AbstractHibernateDao<Parent> implements IParentDao { public class ParentDao extends AbstractHibernateDao<Parent> implements IParentDao {
@Autowired
private SessionFactory sessionFactory;
public ParentDao() { public ParentDao() {
super(); super();

View File

@ -38,7 +38,7 @@
<dependency> <dependency>
<groupId>org.javassist</groupId> <groupId>org.javassist</groupId>
<artifactId>javassist</artifactId> <artifactId>javassist</artifactId>
<version>3.17.1-GA</version> <version>3.18.0-GA</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>mysql</groupId> <groupId>mysql</groupId>
@ -164,7 +164,7 @@
<org.springframework.security.version>3.1.4.RELEASE</org.springframework.security.version> <org.springframework.security.version>3.1.4.RELEASE</org.springframework.security.version>
<!-- persistence --> <!-- persistence -->
<hibernate.version>4.2.3.Final</hibernate.version> <hibernate.version>4.2.4.Final</hibernate.version>
<mysql-connector-java.version>5.1.26</mysql-connector-java.version> <mysql-connector-java.version>5.1.26</mysql-connector-java.version>
<!-- logging --> <!-- logging -->
@ -191,7 +191,7 @@
<!-- Maven plugins --> <!-- Maven plugins -->
<cargo-maven2-plugin.version>1.4.3</cargo-maven2-plugin.version> <cargo-maven2-plugin.version>1.4.3</cargo-maven2-plugin.version>
<maven-surefire-plugin.version>2.15</maven-surefire-plugin.version> <maven-surefire-plugin.version>2.16</maven-surefire-plugin.version>
</properties> </properties>
</project> </project>

View File

@ -125,7 +125,7 @@
<org.springframework.security.version>3.1.4.RELEASE</org.springframework.security.version> <org.springframework.security.version>3.1.4.RELEASE</org.springframework.security.version>
<!-- persistence --> <!-- persistence -->
<hibernate.version>4.2.3.Final</hibernate.version> <hibernate.version>4.2.4.Final</hibernate.version>
<mysql-connector-java.version>5.1.26</mysql-connector-java.version> <mysql-connector-java.version>5.1.26</mysql-connector-java.version>
<!-- logging --> <!-- logging -->
@ -152,7 +152,7 @@
<!-- Maven plugins --> <!-- Maven plugins -->
<cargo-maven2-plugin.version>1.4.3</cargo-maven2-plugin.version> <cargo-maven2-plugin.version>1.4.3</cargo-maven2-plugin.version>
<maven-surefire-plugin.version>2.15</maven-surefire-plugin.version> <maven-surefire-plugin.version>2.16</maven-surefire-plugin.version>
</properties> </properties>
</project> </project>

View File

@ -129,7 +129,7 @@
<!-- Maven plugins --> <!-- Maven plugins -->
<cargo-maven2-plugin.version>1.4.3</cargo-maven2-plugin.version> <cargo-maven2-plugin.version>1.4.3</cargo-maven2-plugin.version>
<maven-surefire-plugin.version>2.15</maven-surefire-plugin.version> <maven-surefire-plugin.version>2.16</maven-surefire-plugin.version>
<maven-war-plugin.version>2.4</maven-war-plugin.version> <maven-war-plugin.version>2.4</maven-war-plugin.version>
</properties> </properties>

View File

@ -120,7 +120,7 @@
<!-- Maven plugins --> <!-- Maven plugins -->
<cargo-maven2-plugin.version>1.4.3</cargo-maven2-plugin.version> <cargo-maven2-plugin.version>1.4.3</cargo-maven2-plugin.version>
<maven-surefire-plugin.version>2.15</maven-surefire-plugin.version> <maven-surefire-plugin.version>2.16</maven-surefire-plugin.version>
</properties> </properties>
</project> </project>

View File

@ -125,7 +125,7 @@
<org.springframework.security.version>3.1.4.RELEASE</org.springframework.security.version> <org.springframework.security.version>3.1.4.RELEASE</org.springframework.security.version>
<!-- persistence --> <!-- persistence -->
<hibernate.version>4.2.3.Final</hibernate.version> <hibernate.version>4.2.4.Final</hibernate.version>
<mysql-connector-java.version>5.1.26</mysql-connector-java.version> <mysql-connector-java.version>5.1.26</mysql-connector-java.version>
<!-- logging --> <!-- logging -->
@ -152,7 +152,7 @@
<!-- Maven plugins --> <!-- Maven plugins -->
<cargo-maven2-plugin.version>1.4.3</cargo-maven2-plugin.version> <cargo-maven2-plugin.version>1.4.3</cargo-maven2-plugin.version>
<maven-surefire-plugin.version>2.15</maven-surefire-plugin.version> <maven-surefire-plugin.version>2.16</maven-surefire-plugin.version>
</properties> </properties>
</project> </project>

View File

@ -183,7 +183,7 @@
<org.springframework.security.version>3.1.4.RELEASE</org.springframework.security.version> <org.springframework.security.version>3.1.4.RELEASE</org.springframework.security.version>
<!-- persistence --> <!-- persistence -->
<hibernate.version>4.2.3.Final</hibernate.version> <hibernate.version>4.2.4.Final</hibernate.version>
<mysql-connector-java.version>5.1.26</mysql-connector-java.version> <mysql-connector-java.version>5.1.26</mysql-connector-java.version>
<!-- logging --> <!-- logging -->
@ -210,7 +210,7 @@
<!-- Maven plugins --> <!-- Maven plugins -->
<cargo-maven2-plugin.version>1.4.3</cargo-maven2-plugin.version> <cargo-maven2-plugin.version>1.4.3</cargo-maven2-plugin.version>
<maven-surefire-plugin.version>2.15</maven-surefire-plugin.version> <maven-surefire-plugin.version>2.16</maven-surefire-plugin.version>
</properties> </properties>
</project> </project>

View File

@ -187,7 +187,7 @@
<org.springframework.security.version>3.1.4.RELEASE</org.springframework.security.version> <org.springframework.security.version>3.1.4.RELEASE</org.springframework.security.version>
<!-- persistence --> <!-- persistence -->
<hibernate.version>4.2.3.Final</hibernate.version> <hibernate.version>4.2.4.Final</hibernate.version>
<mysql-connector-java.version>5.1.26</mysql-connector-java.version> <mysql-connector-java.version>5.1.26</mysql-connector-java.version>
<!-- logging --> <!-- logging -->
@ -214,7 +214,7 @@
<!-- Maven plugins --> <!-- Maven plugins -->
<cargo-maven2-plugin.version>1.4.3</cargo-maven2-plugin.version> <cargo-maven2-plugin.version>1.4.3</cargo-maven2-plugin.version>
<maven-surefire-plugin.version>2.15</maven-surefire-plugin.version> <maven-surefire-plugin.version>2.16</maven-surefire-plugin.version>
</properties> </properties>
</project> </project>

View File

@ -183,7 +183,7 @@
<org.springframework.security.version>3.1.4.RELEASE</org.springframework.security.version> <org.springframework.security.version>3.1.4.RELEASE</org.springframework.security.version>
<!-- persistence --> <!-- persistence -->
<hibernate.version>4.2.3.Final</hibernate.version> <hibernate.version>4.2.4.Final</hibernate.version>
<mysql-connector-java.version>5.1.26</mysql-connector-java.version> <mysql-connector-java.version>5.1.26</mysql-connector-java.version>
<!-- logging --> <!-- logging -->
@ -210,7 +210,7 @@
<!-- Maven plugins --> <!-- Maven plugins -->
<cargo-maven2-plugin.version>1.4.3</cargo-maven2-plugin.version> <cargo-maven2-plugin.version>1.4.3</cargo-maven2-plugin.version>
<maven-surefire-plugin.version>2.15</maven-surefire-plugin.version> <maven-surefire-plugin.version>2.16</maven-surefire-plugin.version>
</properties> </properties>
</project> </project>

View File

@ -179,7 +179,7 @@
<org.springframework.security.version>3.1.4.RELEASE</org.springframework.security.version> <org.springframework.security.version>3.1.4.RELEASE</org.springframework.security.version>
<!-- persistence --> <!-- persistence -->
<hibernate.version>4.2.3.Final</hibernate.version> <hibernate.version>4.2.4.Final</hibernate.version>
<mysql-connector-java.version>5.1.26</mysql-connector-java.version> <mysql-connector-java.version>5.1.26</mysql-connector-java.version>
<!-- logging --> <!-- logging -->
@ -206,7 +206,7 @@
<!-- Maven plugins --> <!-- Maven plugins -->
<cargo-maven2-plugin.version>1.4.3</cargo-maven2-plugin.version> <cargo-maven2-plugin.version>1.4.3</cargo-maven2-plugin.version>
<maven-surefire-plugin.version>2.15</maven-surefire-plugin.version> <maven-surefire-plugin.version>2.16</maven-surefire-plugin.version>
</properties> </properties>
</project> </project>

View File

@ -187,7 +187,7 @@
<org.springframework.security.version>3.1.4.RELEASE</org.springframework.security.version> <org.springframework.security.version>3.1.4.RELEASE</org.springframework.security.version>
<!-- persistence --> <!-- persistence -->
<hibernate.version>4.2.3.Final</hibernate.version> <hibernate.version>4.2.4.Final</hibernate.version>
<mysql-connector-java.version>5.1.26</mysql-connector-java.version> <mysql-connector-java.version>5.1.26</mysql-connector-java.version>
<!-- logging --> <!-- logging -->
@ -214,7 +214,7 @@
<!-- Maven plugins --> <!-- Maven plugins -->
<cargo-maven2-plugin.version>1.4.3</cargo-maven2-plugin.version> <cargo-maven2-plugin.version>1.4.3</cargo-maven2-plugin.version>
<maven-surefire-plugin.version>2.15</maven-surefire-plugin.version> <maven-surefire-plugin.version>2.16</maven-surefire-plugin.version>
</properties> </properties>
</project> </project>

View File

@ -284,7 +284,7 @@
<org.springframework.security.version>3.1.4.RELEASE</org.springframework.security.version> <org.springframework.security.version>3.1.4.RELEASE</org.springframework.security.version>
<!-- persistence --> <!-- persistence -->
<hibernate.version>4.2.3.Final</hibernate.version> <hibernate.version>4.2.4.Final</hibernate.version>
<mysql-connector-java.version>5.1.26</mysql-connector-java.version> <mysql-connector-java.version>5.1.26</mysql-connector-java.version>
<!-- http --> <!-- http -->
@ -312,7 +312,7 @@
<!-- Maven plugins --> <!-- Maven plugins -->
<cargo-maven2-plugin.version>1.4.3</cargo-maven2-plugin.version> <cargo-maven2-plugin.version>1.4.3</cargo-maven2-plugin.version>
<maven-surefire-plugin.version>2.15</maven-surefire-plugin.version> <maven-surefire-plugin.version>2.16</maven-surefire-plugin.version>
</properties> </properties>
</project> </project>

View File

@ -239,7 +239,7 @@
<org.springframework.security.version>3.1.4.RELEASE</org.springframework.security.version> <org.springframework.security.version>3.1.4.RELEASE</org.springframework.security.version>
<!-- persistence --> <!-- persistence -->
<hibernate.version>4.2.3.Final</hibernate.version> <hibernate.version>4.2.4.Final</hibernate.version>
<mysql-connector-java.version>5.1.26</mysql-connector-java.version> <mysql-connector-java.version>5.1.26</mysql-connector-java.version>
<!-- logging --> <!-- logging -->
@ -266,7 +266,7 @@
<!-- Maven plugins --> <!-- Maven plugins -->
<cargo-maven2-plugin.version>1.4.3</cargo-maven2-plugin.version> <cargo-maven2-plugin.version>1.4.3</cargo-maven2-plugin.version>
<maven-surefire-plugin.version>2.15</maven-surefire-plugin.version> <maven-surefire-plugin.version>2.16</maven-surefire-plugin.version>
</properties> </properties>
</project> </project>

View File

@ -272,7 +272,7 @@
<org.springframework.security.version>3.1.4.RELEASE</org.springframework.security.version> <org.springframework.security.version>3.1.4.RELEASE</org.springframework.security.version>
<!-- persistence --> <!-- persistence -->
<hibernate.version>4.2.3.Final</hibernate.version> <hibernate.version>4.2.4.Final</hibernate.version>
<mysql-connector-java.version>5.1.26</mysql-connector-java.version> <mysql-connector-java.version>5.1.26</mysql-connector-java.version>
<!-- http --> <!-- http -->
@ -300,7 +300,7 @@
<!-- Maven plugins --> <!-- Maven plugins -->
<cargo-maven2-plugin.version>1.4.3</cargo-maven2-plugin.version> <cargo-maven2-plugin.version>1.4.3</cargo-maven2-plugin.version>
<maven-surefire-plugin.version>2.15</maven-surefire-plugin.version> <maven-surefire-plugin.version>2.16</maven-surefire-plugin.version>
</properties> </properties>
</project> </project>

View File

@ -92,7 +92,7 @@
<dependency> <dependency>
<groupId>org.javassist</groupId> <groupId>org.javassist</groupId>
<artifactId>javassist</artifactId> <artifactId>javassist</artifactId>
<version>3.17.1-GA</version> <version>3.18.0-GA</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>mysql</groupId> <groupId>mysql</groupId>
@ -220,7 +220,7 @@
<org.springframework.security.version>3.1.4.RELEASE</org.springframework.security.version> <org.springframework.security.version>3.1.4.RELEASE</org.springframework.security.version>
<!-- persistence --> <!-- persistence -->
<hibernate.version>4.2.3.Final</hibernate.version> <hibernate.version>4.2.4.Final</hibernate.version>
<mysql-connector-java.version>5.1.26</mysql-connector-java.version> <mysql-connector-java.version>5.1.26</mysql-connector-java.version>
<spring-data-jpa.version>1.3.2.RELEASE</spring-data-jpa.version> <spring-data-jpa.version>1.3.2.RELEASE</spring-data-jpa.version>
@ -252,7 +252,7 @@
<!-- Maven plugins --> <!-- Maven plugins -->
<cargo-maven2-plugin.version>1.4.3</cargo-maven2-plugin.version> <cargo-maven2-plugin.version>1.4.3</cargo-maven2-plugin.version>
<maven-surefire-plugin.version>2.15</maven-surefire-plugin.version> <maven-surefire-plugin.version>2.16</maven-surefire-plugin.version>
</properties> </properties>
</project> </project>

View File

@ -196,7 +196,7 @@
<org.springframework.security.version>3.1.4.RELEASE</org.springframework.security.version> <org.springframework.security.version>3.1.4.RELEASE</org.springframework.security.version>
<!-- persistence --> <!-- persistence -->
<hibernate.version>4.2.3.Final</hibernate.version> <hibernate.version>4.2.4.Final</hibernate.version>
<mysql-connector-java.version>5.1.26</mysql-connector-java.version> <mysql-connector-java.version>5.1.26</mysql-connector-java.version>
<!-- logging --> <!-- logging -->
@ -223,7 +223,7 @@
<!-- Maven plugins --> <!-- Maven plugins -->
<cargo-maven2-plugin.version>1.4.3</cargo-maven2-plugin.version> <cargo-maven2-plugin.version>1.4.3</cargo-maven2-plugin.version>
<maven-surefire-plugin.version>2.15</maven-surefire-plugin.version> <maven-surefire-plugin.version>2.16</maven-surefire-plugin.version>
</properties> </properties>
</project> </project>