Skip to content

Commit 8a84b4d

Browse files
committed
update sorma2
1 parent 2ac0bd1 commit 8a84b4d

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

sorma2/README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ It is based on the wonderful https://github.com/maskarade/Android-Orma by [FUJI
55
<br>
66
This is a rewrite in pure java, to generate most stuff you need and then add it to your project
77
either as a ```.jar file``` or as ```java source```.<br>
8-
You still need to add ```sqlite-jdbc-3.50.1.0.jar``` to your project to use it.<br>
8+
You still need to add ```sqlite-jdbc-3.50.2.0.jar``` to your project to use it.<br>
99
<br><br>
1010
~~sadly [sqlite-jdbc](https://github.com/xerial/sqlite-jdbc) project decided that it needs ```slf4j-api jar``` (for no good reason).~~
1111
this was solved by: https://github.com/xerial/sqlite-jdbc/pull/1178
@@ -15,6 +15,7 @@ see: https://github.com/xerial/sqlite-jdbc/issues/1094<br>
1515

1616
[![build](https://github.com/zoff99/iocipher_pack/actions/workflows/ci.yml/badge.svg)](https://github.com/zoff99/iocipher_pack/actions/workflows/ci.yml)
1717

18+
<img src="https://raw.githubusercontent.com/zoff99/sorma2/refs/heads/master/sorma2_coms.png" width="300">
1819

1920
# Usage
2021

@@ -39,7 +40,7 @@ public class Person
3940

4041
now create the Java sources with the Java SORMA2 Generator. <b>you need at least java 17</b>.<br>
4142
```bash
42-
java -classpath ".:sqlite-jdbc-3.50.1.0.jar:sorma2.jar" \
43+
java -classpath ".:sqlite-jdbc-3.50.2.0.jar:sorma2.jar" \
4344
com/zoffcc/applications/sorm/Generator "gen"
4445
```
4546

@@ -79,7 +80,7 @@ see: https://github.com/zoff99/sorma2/tree/master/test
7980

8081
<img src="https://github.com/zoff99/sorma2/releases/download/nightly/console_screen.png" width="70%">
8182

82-
Use the `sorma_generated.jar` (that is generated in the `gen` directory) and `sqlite-jdbc-3.50.1.0.jar` for the Java project.<br>
83+
Use the `sorma_generated.jar` (that is generated in the `gen` directory) and `sqlite-jdbc-3.50.2.0.jar` for the Java project.<br>
8384
Check `TestSorma.java` for an Example usage.
8485
<br>
8586

sorma2/do_compile.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#! /bin/bash
22

33
javac \
4-
-cp "sqlite-jdbc-3.50.1.0.jar" \
4+
-cp "sqlite-jdbc-3.50.2.0.jar" \
55
com/zoffcc/applications/sorm/Column.java \
66
com/zoffcc/applications/sorm/Index.java \
77
com/zoffcc/applications/sorm/Log.java \

sorma2/do_run.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#! /bin/bash
22

33
java \
4-
-classpath ".:sqlite-jdbc-3.50.1.0.jar:sorma2.jar" \
4+
-classpath ".:sqlite-jdbc-3.50.2.0.jar:sorma2.jar" \
55
com/zoffcc/applications/sorm/Generator "gen" || exit 1
66

77
cd gen/
88
javac \
9-
-cp "sqlite-jdbc-3.50.1.0.jar" \
9+
-cp "sqlite-jdbc-3.50.2.0.jar" \
1010
com/zoffcc/applications/sorm/*.java && \
1111
jar cf sorma_generated.jar com/zoffcc/applications/sorm/*.class && \
1212
cp sorma_generated.jar ../test/ && \
@@ -15,12 +15,12 @@ cd ../ || exit 1
1515
# use generated custom jar
1616
cd test/
1717
javac \
18-
-classpath ".:sqlite-jdbc-3.50.1.0.jar:sorma_generated.jar" \
18+
-classpath ".:sqlite-jdbc-3.50.2.0.jar:sorma_generated.jar" \
1919
org/example/TestSorma.java || exit 1
2020

2121
rm -f main.db
2222

2323
java \
24-
-classpath ".:sqlite-jdbc-3.50.1.0.jar:sorma_generated.jar" \
24+
-classpath ".:sqlite-jdbc-3.50.2.0.jar:sorma_generated.jar" \
2525
org/example/TestSorma || exit 1
2626

0 commit comments

Comments
 (0)