-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #289 from daneshk/h2_support
Add H2 database to the persist model validation
- Loading branch information
Showing
10 changed files
with
153 additions
and
56 deletions.
There are no files selected for viewing
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
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
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
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
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
7 changes: 7 additions & 0 deletions
7
compiler-plugin-test/src/test/resources/project_11/Ballerina.toml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[package] | ||
org = "root" | ||
name = "project_2" | ||
version = "0.1.0" | ||
|
||
[[tool.persist]] | ||
options.datastore = "h2" |
36 changes: 36 additions & 0 deletions
36
compiler-plugin-test/src/test/resources/project_11/persist/field-types.bal
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import ballerina/time; | ||
import ballerinax/java.jdbc; | ||
import ballerina/persist as _; | ||
|
||
public enum Gender { | ||
M, | ||
F | ||
} | ||
|
||
public type MedicalNeed record {| | ||
readonly int needId; | ||
boolean booleanTest; | ||
int itemId; | ||
float floatTest; | ||
decimal decimalTest; | ||
string beneficiaryId; | ||
byte[] beneficiaryIdByteArray; | ||
|
||
boolean[] booleanArray; | ||
|
||
json jsonTest; | ||
json[] jsonArray; | ||
|
||
time:Civil period; | ||
time:Civil[] periodArray; | ||
time:Civil|string unionType; | ||
|
||
error errorType; | ||
error[] errorArrayType; | ||
|
||
jdbc:Client clientType; | ||
jdbc:Client[] clientArrayType; | ||
|
||
Gender gender; | ||
Gender[] genderArray; | ||
|}; |
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
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
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