File tree Expand file tree Collapse file tree 11 files changed +36
-35
lines changed
java/com/baeldung/jpa/defaultvalues
java/com/baeldung/jpa/defaultvalues Expand file tree Collapse file tree 11 files changed +36
-35
lines changed 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
- [ Mapping Entity Class Names to SQL Table Names with JPA] ( https://www.baeldung.com/jpa-entity-table-names )
8
- - [ Default Column Values in JPA] ( https://www.baeldung.com/jpa-default-column-values )
9
8
- [ Types of JPA Queries] ( https://www.baeldung.com/jpa-queries )
10
9
- [ JPA/Hibernate Projections] ( https://www.baeldung.com/jpa-hibernate-projections )
11
10
- [ Combining JPA And/Or Criteria Predicates] ( https://www.baeldung.com/jpa-and-or-criteria-predicates )
Original file line number Diff line number Diff line change 39
39
</properties >
40
40
</persistence-unit >
41
41
42
- <persistence-unit name =" entity-default-values" >
43
- <provider >org.hibernate.jpa.HibernatePersistenceProvider</provider >
44
- <class >com.baeldung.jpa.defaultvalues.User</class >
45
- <class >com.baeldung.jpa.defaultvalues.UserEntity</class >
46
- <exclude-unlisted-classes >true</exclude-unlisted-classes >
47
- <properties >
48
- <property name =" jakarta.persistence.jdbc.driver" value =" org.h2.Driver" />
49
- <property name =" jakarta.persistence.jdbc.url" value =" jdbc:h2:mem:test" />
50
- <property name =" jakarta.persistence.jdbc.user" value =" sa" />
51
- <property name =" jakarta.persistence.jdbc.password" value =" " />
52
- <property name =" hibernate.dialect" value =" org.hibernate.dialect.H2Dialect" />
53
- <property name =" hibernate.hbm2ddl.auto" value =" create-drop" />
54
- <property name =" show_sql" value =" true" />
55
- <property name =" hibernate.temp.use_jdbc_metadata_defaults" value =" false" />
56
- </properties >
57
- </persistence-unit >
58
-
59
42
<persistence-unit name =" jpa-query-types" >
60
43
<provider >org.hibernate.jpa.HibernatePersistenceProvider</provider >
61
44
<class >com.baeldung.jpa.querytypes.UserEntity</class >
Original file line number Diff line number Diff line change 21
21
</properties >
22
22
</persistence-unit >
23
23
24
- <persistence-unit name =" entity-default-values" >
25
- <provider >org.hibernate.jpa.HibernatePersistenceProvider</provider >
26
- <class >com.baeldung.jpa.defaultvalues.User</class >
27
- <class >com.baeldung.jpa.defaultvalues.UserEntity</class >
28
- <exclude-unlisted-classes >true</exclude-unlisted-classes >
29
- <properties >
30
- <property name =" jakarta.persistence.jdbc.driver" value =" org.h2.Driver" />
31
- <property name =" jakarta.persistence.jdbc.url" value =" jdbc:h2:mem:test" />
32
- <property name =" jakarta.persistence.jdbc.user" value =" sa" />
33
- <property name =" jakarta.persistence.jdbc.password" value =" " />
34
- <property name =" hibernate.dialect" value =" org.hibernate.dialect.H2Dialect" />
35
- <property name =" hibernate.hbm2ddl.auto" value =" create-drop" />
36
- <property name =" show_sql" value =" false" />
37
- <property name =" hibernate.temp.use_jdbc_metadata_defaults" value =" false" />
38
- </properties >
39
- </persistence-unit >
40
-
41
24
<persistence-unit name =" jpa-query-types" >
42
25
<provider >org.hibernate.jpa.HibernatePersistenceProvider</provider >
43
26
<class >com.baeldung.jpa.querytypes.UserEntity</class >
Original file line number Diff line number Diff line change @@ -11,3 +11,4 @@ This module contains articles about the Java Persistence API (JPA) in Java.
11
11
- [ Persisting Enums in JPA] ( https://www.baeldung.com/jpa-persisting-enums-in-jpa )
12
12
- More articles: [[ next -->]] ( /persistence-modules/java-jpa-2 )
13
13
- [ JPA Query Parameters Usage] ( https://www.baeldung.com/jpa-query-parameters )
14
+ - [ Default Column Values in JPA] ( https://www.baeldung.com/jpa-default-column-values )
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 70
70
<property name =" hibernate.temp.use_jdbc_metadata_defaults" value =" false" />
71
71
</properties >
72
72
</persistence-unit >
73
+
74
+ <persistence-unit name =" entity-default-values" >
75
+ <provider >org.hibernate.jpa.HibernatePersistenceProvider</provider >
76
+ <class >com.baeldung.jpa.defaultvalues.User</class >
77
+ <class >com.baeldung.jpa.defaultvalues.UserEntity</class >
78
+ <exclude-unlisted-classes >true</exclude-unlisted-classes >
79
+ <properties >
80
+ <property name =" jakarta.persistence.jdbc.driver" value =" org.h2.Driver" />
81
+ <property name =" jakarta.persistence.jdbc.url" value =" jdbc:h2:mem:test" />
82
+ <property name =" jakarta.persistence.jdbc.user" value =" sa" />
83
+ <property name =" jakarta.persistence.jdbc.password" value =" " />
84
+ <property name =" hibernate.dialect" value =" org.hibernate.dialect.H2Dialect" />
85
+ <property name =" hibernate.hbm2ddl.auto" value =" create-drop" />
86
+ <property name =" show_sql" value =" true" />
87
+ <property name =" hibernate.temp.use_jdbc_metadata_defaults" value =" false" />
88
+ </properties >
89
+ </persistence-unit >
73
90
74
91
</persistence >
File renamed without changes.
You can’t perform that action at this time.
0 commit comments