Skip to content

domaframework/simple-examples

Repository files navigation

Simple Examples Java CI with Gradle

Simple examples for Doma.

This repository includes the following examples:

  • dao-style-basic - Shows basic DAO style. Written in Java 8.
  • dao-style-file - Uses files to store SQL templates. Written in Java 8.
  • dao-style-text - Uses Text Blocks to store SQL templates. Written in Java 17.
  • dsl-style-java - Uses the Criteria API. Written in Java 8.
  • jpms-java - Uses the Java Platform Module System (JPMS). Written in Java 17.

Clone this repository

$ git clone https://github.com/domaframework/simple-examples.git
$ cd simple-examples

Java version

You need Java 17.

Build

$ ./gradlew build

Import the project into your IDE

IDEA

Import the project as a Gradle project.

Eclipse

To import this project into Eclipse, adhere to the instructions outlined below.

1. Run the Gradle command:

$ ./gradlew cleanEclipse eclipse

2. Navigate through the Eclipse menu and select:

File > Import > General > Existing Projects into Workspace

It is important not to choose File > Import > Gradle > Existing Gradle Project.