File tree Expand file tree Collapse file tree
java/org/baeldung/ex/nontransientexception/cause Expand file tree Collapse file tree Original file line number Diff line number Diff line change 135135 <artifactId >el-api</artifactId >
136136 <version >2.2</version >
137137 </dependency >
138+
139+ <dependency >
140+ <groupId >org.apache.derby</groupId >
141+ <artifactId >derby</artifactId >
142+ <version >10.12.1.1</version >
143+ </dependency >
144+ <dependency >
145+ <groupId >org.apache.derby</groupId >
146+ <artifactId >derbyclient</artifactId >
147+ <version >10.12.1.1</version >
148+ </dependency >
149+ <dependency >
150+ <groupId >org.apache.derby</groupId >
151+ <artifactId >derbynet</artifactId >
152+ <version >10.12.1.1</version >
153+ </dependency >
154+ <dependency >
155+ <groupId >org.apache.derby</groupId >
156+ <artifactId >derbytools</artifactId >
157+ <version >10.12.1.1</version >
158+ </dependency >
138159 </dependencies >
139160
140161 <build >
Original file line number Diff line number Diff line change 2020
2121@ Configuration
2222@ EnableTransactionManagement
23- @ PropertySource ({ "classpath:persistence-mysql .properties" })
23+ @ PropertySource ({ "classpath:persistence-derby .properties" })
2424@ ComponentScan ({ "org.baeldung.persistence" })
2525public class Cause1NonTransientConfig {
2626
Original file line number Diff line number Diff line change 2020
2121@ Configuration
2222@ EnableTransactionManagement
23- @ PropertySource ({ "classpath:persistence-mysql .properties" })
23+ @ PropertySource ({ "classpath:persistence-derby .properties" })
2424@ ComponentScan ({ "org.baeldung.persistence" })
2525public class Cause4NonTransientConfig {
2626
@@ -72,5 +72,4 @@ final Properties hibernateProperties() {
7272 // hibernateProperties.setProperty("hibernate.globally_quoted_identifiers", "true");
7373 return hibernateProperties ;
7474 }
75-
7675}
Original file line number Diff line number Diff line change 1+ # jdbc.X
2+ jdbc.driverClassName =org.apache.derby.jdbc.EmbeddedDriver
3+ jdbc.url =jdbc:derby:memory:spring_exceptions;create=true
4+ jdbc.user =tutorialuser
5+ jdbc.pass =tutorialpass
6+
7+ # hibernate.X
8+ hibernate.dialect =org.hibernate.dialect.DerbyDialect
9+ hibernate.show_sql =false
10+ hibernate.hbm2ddl.auto =create
You can’t perform that action at this time.
0 commit comments