File tree Expand file tree Collapse file tree 7 files changed +18
-16
lines changed
src/main/resources/META-INF
java/com/baeldung/jpa/IdGeneration
test/java/com/baeldung/jpa/IdGeneration Expand file tree Collapse file tree 7 files changed +18
-16
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ This module contains articles about the Java Persistence API (JPA) in Java.
10
10
- [ JPA CascadeType.REMOVE vs orphanRemoval] ( https://www.baeldung.com/jpa-cascade-remove-vs-orphanremoval )
11
11
- [ A Guide to MultipleBagFetchException in Hibernate] ( https://www.baeldung.com/java-hibernate-multiplebagfetchexception )
12
12
- [ How to Convert a Hibernate Proxy to a Real Entity Object] ( https://www.baeldung.com/hibernate-proxy-to-real-entity-object )
13
- - [ Returning an Auto-Generated Id with JPA] ( https://www.baeldung.com/jpa-get-auto-generated-id )
14
13
- [ How to Return Multiple Entities in JPA Query] ( https://www.baeldung.com/jpa-return-multiple-entities )
15
14
- [ Defining Unique Constraints in JPA] ( https://www.baeldung.com/jpa-unique-constraints )
16
15
- [ Connecting to a Specific Schema in JDBC] ( https://www.baeldung.com/jdbc-connect-to-schema )
Original file line number Diff line number Diff line change 98
98
</properties >
99
99
</persistence-unit >
100
100
101
- <persistence-unit name =" jpa-h2-id-generation" >
102
- <provider >org.hibernate.jpa.HibernatePersistenceProvider</provider >
103
- <class >com.baeldung.jpa.IdGeneration.User</class >
104
- <exclude-unlisted-classes >true</exclude-unlisted-classes >
105
- <properties >
106
- <property name =" jakarta.persistence.jdbc.driver" value =" org.h2.Driver" />
107
- <property name =" jakarta.persistence.jdbc.url" value =" jdbc:h2:mem:idGen" />
108
- <property name =" jakarta.persistence.jdbc.user" value =" sa" />
109
- <property name =" jakarta.persistence.jdbc.password" value =" " />
110
- <property name =" hibernate.dialect" value =" org.hibernate.dialect.H2Dialect" />
111
- <property name =" hibernate.hbm2ddl.auto" value =" create-drop" />
112
- <property name =" hibernate.format_sql" value =" true" />
113
- <property name =" hibernate.temp.use_jdbc_metadata_defaults" value =" false" />
114
- </properties >
115
- </persistence-unit >
116
101
<persistence-unit name =" jpa-unique-constraints" >
117
102
<provider >org.hibernate.jpa.HibernatePersistenceProvider</provider >
118
103
<class >com.baeldung.jpa.uniqueconstraints.Person</class >
Original file line number Diff line number Diff line change @@ -12,3 +12,4 @@ This module contains articles about the Java Persistence API (JPA) in Java.
12
12
- More articles: [[ next -->]] ( /persistence-modules/java-jpa-2 )
13
13
- [ JPA Query Parameters Usage] ( https://www.baeldung.com/jpa-query-parameters )
14
14
- [ Default Column Values in JPA] ( https://www.baeldung.com/jpa-default-column-values )
15
+ - [ Returning an Auto-Generated Id with JPA] ( https://www.baeldung.com/jpa-get-auto-generated-id )
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 86
86
<property name =" show_sql" value =" true" />
87
87
<property name =" hibernate.temp.use_jdbc_metadata_defaults" value =" false" />
88
88
</properties >
89
+
89
90
</persistence-unit >
91
+
92
+ <persistence-unit name =" jpa-h2-id-generation" >
93
+ <provider >org.hibernate.jpa.HibernatePersistenceProvider</provider >
94
+ <class >com.baeldung.jpa.IdGeneration.User</class >
95
+ <exclude-unlisted-classes >true</exclude-unlisted-classes >
96
+ <properties >
97
+ <property name =" jakarta.persistence.jdbc.driver" value =" org.h2.Driver" />
98
+ <property name =" jakarta.persistence.jdbc.url" value =" jdbc:h2:mem:idGen" />
99
+ <property name =" jakarta.persistence.jdbc.user" value =" sa" />
100
+ <property name =" jakarta.persistence.jdbc.password" value =" " />
101
+ <property name =" hibernate.dialect" value =" org.hibernate.dialect.H2Dialect" />
102
+ <property name =" hibernate.hbm2ddl.auto" value =" create-drop" />
103
+ <property name =" hibernate.format_sql" value =" true" />
104
+ <property name =" hibernate.temp.use_jdbc_metadata_defaults" value =" false" />
105
+ </properties >
106
+ </persistence-unit >
90
107
91
108
</persistence >
File renamed without changes.
You can’t perform that action at this time.
0 commit comments