File tree Expand file tree Collapse file tree 6 files changed +18
-1
lines changed
java/com/baeldung/jpa/stringcast
test/java/com/baeldung/jpa/stringcast Expand file tree Collapse file tree 6 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -10,3 +10,4 @@ This module contains articles about the Java Persistence API (JPA) in Java.
10
10
- [ How to Clone a JPA Entity] ( https://www.baeldung.com/java-jpa-clone-entity )
11
11
- [ A Guide to Stored Procedures with JPA] ( https://www.baeldung.com/jpa-stored-procedures )
12
12
- [ JPA @Basic Annotation] ( https://www.baeldung.com/jpa-basic-annotation )
13
+ - [ Fixing the JPA error “java.lang.String cannot be cast to Ljava.lang.String;”] ( https://www.baeldung.com/jpa-error-java-lang-string-cannot-be-cast )
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 209
209
<property name =" show_sql" value =" true" />
210
210
<property name =" hibernate.temp.use_jdbc_metadata_defaults" value =" false" />
211
211
</properties >
212
+
213
+ </persistence-unit > <persistence-unit name =" jpa-h2" >
214
+ <provider >org.hibernate.jpa.HibernatePersistenceProvider</provider >
215
+ <class >com.baeldung.jpa.stringcast.Message</class >
216
+ <exclude-unlisted-classes >true</exclude-unlisted-classes >
217
+ <properties >
218
+ <property name =" jakarta.persistence.jdbc.driver" value =" org.h2.Driver" />
219
+ <property name =" jakarta.persistence.jdbc.url" value =" jdbc:h2:mem:test;MODE=LEGACY" />
220
+ <property name =" jakarta.persistence.jdbc.user" value =" sa" />
221
+ <property name =" jakarta.persistence.jdbc.password" value =" " />
222
+ <property name =" hibernate.dialect" value =" org.hibernate.dialect.H2Dialect" />
223
+ <property name =" hibernate.hbm2ddl.auto" value =" create-drop" />
224
+ <property name =" show_sql" value =" true" />
225
+ <property name =" hibernate.temp.use_jdbc_metadata_defaults" value =" false" />
226
+ </properties >
212
227
</persistence-unit >
228
+
229
+
213
230
</persistence >
File renamed without changes.
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ This module contains articles about the Java Persistence API (JPA) in Java.
5
5
### Relevant Articles
6
6
7
7
- [ A Guide to SqlResultSetMapping] ( https://www.baeldung.com/jpa-sql-resultset-mapping )
8
- - [ Fixing the JPA error “java.lang.String cannot be cast to Ljava.lang.String;”] ( https://www.baeldung.com/jpa-error-java-lang-string-cannot-be-cast )
9
8
- [ JPA Entity Graph] ( https://www.baeldung.com/jpa-entity-graph )
10
9
- [ JPA Support for java.time Types] ( https://www.baeldung.com/jpa-java-time )
11
10
- [ Converting Between LocalDate and SQL Date] ( https://www.baeldung.com/java-convert-localdate-sql-date )
You can’t perform that action at this time.
0 commit comments