Commit 3bf4f85 1 parent de97aa6 commit 3bf4f85 Copy full SHA for 3bf4f85
File tree 3 files changed +22
-38
lines changed
java/org/jboss/as/quickstarts/batch/model
3 files changed +22
-38
lines changed Original file line number Diff line number Diff line change 191
191
</plugin >
192
192
</plugins >
193
193
</pluginManagement >
194
+ <plugins >
195
+ <plugin >
196
+ <groupId >org.apache.maven.plugins</groupId >
197
+ <artifactId >maven-war-plugin</artifactId >
198
+ <configuration >
199
+ <archive >
200
+ <manifestEntries >
201
+ <Dependencies >com.h2database.h2</Dependencies >
202
+ </manifestEntries >
203
+ </archive >
204
+ </configuration >
205
+ </plugin >
206
+ </plugins >
194
207
</build >
195
208
196
209
<profiles >
207
220
<addOns >
208
221
<addOn >h2-database:default</addOn >
209
222
</addOns >
223
+ <failsOnError >false</failsOnError >
210
224
</discover-provisioning-info >
211
225
</configuration >
212
226
<executions >
Original file line number Diff line number Diff line change 16
16
*/
17
17
package org .jboss .as .quickstarts .batch .model ;
18
18
19
+ import jakarta .annotation .sql .DataSourceDefinition ;
19
20
import jakarta .persistence .Column ;
20
21
import jakarta .persistence .Entity ;
21
22
import jakarta .persistence .Id ;
22
23
import jakarta .validation .constraints .NotNull ;
23
24
25
+
24
26
@ Entity
27
+ @ DataSourceDefinition (name ="java:jboss/datasources/batch-processingDS" ,
28
+ className ="org.h2.jdbcx.JdbcDataSource" ,
29
+ url ="jdbc:h2:mem:batch-processing;DB_CLOSE_ON_EXIT=FALSE;DB_CLOSE_DELAY=-1" ,
30
+ user ="sa" ,
31
+ password ="sa"
32
+ )
25
33
public class Contact {
26
34
27
35
@ Id
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments