File tree Expand file tree Collapse file tree
java/org/jboss/as/quickstarts/batch/model Expand file tree Collapse file tree Original file line number Diff line number Diff line change 191191 </plugin >
192192 </plugins >
193193 </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+ <!-- specifies that the deployment depends on server module com.h2database.h2 -->
202+ <Dependencies >com.h2database.h2</Dependencies >
203+ </manifestEntries >
204+ </archive >
205+ </configuration >
206+ </plugin >
207+ </plugins >
194208 </build >
195209
196210 <profiles >
208222 <discover-provisioning-info >
209223 <version >${version.server} </version >
210224 <addOns >
211- <addOn >h2-database:default </addOn >
225+ <addOn >h2-database</addOn >
212226 </addOns >
213227 </discover-provisioning-info >
214228 </configuration >
235249 <version >${version.server} </version >
236250 <context >cloud</context >
237251 <addOns >
238- <addOn >h2-database:default </addOn >
252+ <addOn >h2-database</addOn >
239253 </addOns >
240254 </discover-provisioning-info >
241255 </configuration >
Original file line number Diff line number Diff line change 1616 */
1717package org .jboss .as .quickstarts .batch .model ;
1818
19+ import jakarta .annotation .sql .DataSourceDefinition ;
1920import jakarta .persistence .Column ;
2021import jakarta .persistence .Entity ;
2122import jakarta .persistence .Id ;
2223import jakarta .validation .constraints .NotNull ;
2324
25+ @ DataSourceDefinition (name ="java:jboss/datasources/batch-processingDS" ,
26+ className ="org.h2.jdbcx.JdbcDataSource" ,
27+ url ="jdbc:h2:mem:batch-processing;DB_CLOSE_ON_EXIT=FALSE;DB_CLOSE_DELAY=-1" ,
28+ user ="sa" ,
29+ password ="sa"
30+ )
2431@ Entity
2532public class Contact {
2633
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments