Skip to content

Commit 6a25a24

Browse files
committed
fix issues after merge
1 parent 6a02cdc commit 6a25a24

6 files changed

Lines changed: 13 additions & 7 deletions

File tree

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<faceted-project>
3-
<installed facet="wst.jsdt.web" version="1.0"/>
3+
<fixed facet="wst.jsdt.web"/>
44
<installed facet="java" version="1.8"/>
5-
<installed facet="jpt.jpa" version="2.1"/>
65
<installed facet="jst.web" version="3.1"/>
6+
<installed facet="wst.jsdt.web" version="1.0"/>
7+
<installed facet="jpt.jpa" version="2.1"/>
78
</faceted-project>

‎spring-jpa/pom.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@
268268

269269
<properties>
270270
<!-- Spring -->
271-
<org.springframework.security.version>4.0.4.RELEASE</org.springframework.security.version>
271+
<org.springframework.security.version>4.1.3.RELEASE</org.springframework.security.version>
272272
<org.springframework.version>4.3.2.RELEASE</org.springframework.version>
273273
<javassist.version>3.20.0-GA</javassist.version>
274274

‎spring-jpa/src/main/java/org/baeldung/custom/config/PersistenceDerbyJPAConfig.java‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ final Properties additionalProperties() {
7575
final Properties hibernateProperties = new Properties();
7676
hibernateProperties.setProperty("hibernate.hbm2ddl.auto", env.getProperty("hibernate.hbm2ddl.auto"));
7777
hibernateProperties.setProperty("hibernate.dialect", env.getProperty("hibernate.dialect"));
78+
hibernateProperties.setProperty("hibernate.cache.use_second_level_cache", env.getProperty("hibernate.cache.use_second_level_cache"));
79+
hibernateProperties.setProperty("hibernate.cache.use_query_cache", env.getProperty("hibernate.cache.use_query_cache"));
7880
// hibernateProperties.setProperty("hibernate.globally_quoted_identifiers", "true");
7981
return hibernateProperties;
8082
}

‎spring-jpa/src/main/java/org/baeldung/user/service/MyUserService.java‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
package org.baeldung.user.service;
22

3-
import javax.transaction.Transactional;
4-
53
import org.baeldung.persistence.model.MyUser;
64
import org.baeldung.user.dao.MyUserDAO;
75
import org.baeldung.web.MyUserDto;
86
import org.springframework.beans.factory.annotation.Autowired;
97
import org.springframework.security.crypto.password.PasswordEncoder;
108
import org.springframework.stereotype.Service;
9+
import org.springframework.transaction.annotation.Transactional;
1110

1211
@Service
1312
@Transactional

‎spring-jpa/src/main/resources/persistence-derby.properties‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,6 @@ jdbc.pass=tutorialpass
77
# hibernate.X
88
hibernate.dialect=org.hibernate.dialect.DerbyDialect
99
hibernate.show_sql=false
10-
hibernate.hbm2ddl.auto=create
10+
hibernate.hbm2ddl.auto=create
11+
hibernate.cache.use_second_level_cache=false
12+
hibernate.cache.use_query_cache=false

‎spring-jpa/src/main/webapp/WEB-INF/mvc-dispatcher-servlet.xml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
xmlns:mvc="http://www.springframework.org/schema/mvc"
66
xmlns:security="http://www.springframework.org/schema/security"
77
xmlns:tx="http://www.springframework.org/schema/tx"
8-
xsi:schemaLocation="http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-4.0.xsd
8+
xsi:schemaLocation="http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-4.1.xsd
99
http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-4.3.xsd
1010
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
1111
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.2.xsd
@@ -65,6 +65,8 @@
6565
<props>
6666
<prop key="hibernate.hbm2ddl.auto">${hibernate.hbm2ddl.auto}</prop>
6767
<prop key="hibernate.dialect">${hibernate.dialect}</prop>
68+
<prop key="hibernate.cache.use_second_level_cache">${hibernate.cache.use_second_level_cache}</prop>
69+
<prop key="hibernate.cache.use_query_cache">${hibernate.cache.use_query_cache}</prop>
6870
</props>
6971
</property>
7072
</bean>

0 commit comments

Comments
 (0)