This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE IF NOT EXISTS GREETING ( | |
SALUTATION VARCHAR(64) NOT NULL PRIMARY KEY, | |
RESPONSE VARCHAR(64) NOT NULL | |
); | |
MERGE INTO GREETING (SALUTATION, RESPONSE) VALUES ('Marco', 'Polo'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server: | |
port: 8080 | |
javax: | |
sql: | |
DataSource: | |
greetingDataSource: | |
dataSourceClassName: org.h2.jdbcx.JdbcDataSource | |
dataSource: | |
url: jdbc:h2:mem:greeting;INIT=RUNSCRIPT FROM 'classpath:greeting.ddl' | |
user: sa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javax.inject.Inject; | |
import javax.transaction.TransactionManager; | |
@Inject | |
private TransactionManager transactionManager; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javax.inject.Inject; | |
import javax.inject.Named; | |
import javax.sql.DataSource; | |
@Inject | |
@Named("yourDataSourceName") | |
private DataSource dataSource; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dependency> | |
<groupId>jakarta.persistence</groupId> | |
<artifactId>jakarta.persistence-api</artifactId> | |
<version>2.2.2</version> | |
<scope>provided</scope> | |
</dependency> | |
<dependency> | |
<groupId>javax.transaction</groupId> | |
<artifactId>javax.transaction-api</artifactId> | |
<version>1.2</version> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dependency> | |
<groupId>io.helidon.integrations.cdi</groupId> | |
<artifactId>helidon-integrations-cdi-eclipselink</artifactId> | |
<scope>runtime</scope> | |
</dependency> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dependency> | |
<groupId>io.helidon.integrations.cdi</groupId> | |
<artifactId>helidon-integrations-cdi-jpa</artifactId> | |
<scope>runtime</scope> | |
</dependency> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dependency> | |
<groupId>io.helidon.integrations.cdi</groupId> | |
<artifactId>helidon-integrations-cdi-jta-weld</artifactId> | |
<scope>runtime</scope> | |
</dependency> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dependency> | |
<groupId>io.helidon.integrations.cdi</groupId> | |
<artifactId>helidon-integrations-cdi-datasource-hikaricp</artifactId> | |
<scope>runtime</scope> | |
</dependency> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dependency> | |
<groupId>com.h2database</groupId> | |
<artifactId>h2</artifactId> | |
<version>1.4.200</version> | |
<scope>runtime</scope> | |
</dependency> |