File tree Expand file tree Collapse file tree 5 files changed +9
-9
lines changed
com/zoffcc/applications/sorm Expand file tree Collapse file tree 5 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ It is based on the wonderful https://github.com/maskarade/Android-Orma by [FUJI
55<br >
66This is a rewrite in pure java, to generate most stuff you need and then add it to your project
77either as a ``` .jar file ``` or as ``` java source ``` .<br >
8- You still need to add ``` sqlite-jdbc-3.49 .1.0.jar ``` to your project to use it.<br >
8+ You still need to add ``` sqlite-jdbc-3.50 .1.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).~~
1111this was solved by: https://github.com/xerial/sqlite-jdbc/pull/1178
@@ -39,7 +39,7 @@ public class Person
3939
4040now create the Java sources with the Java SORMA2 Generator. <b >you need at least java 17</b >.<br >
4141``` bash
42- java -classpath " .:sqlite-jdbc-3.49 .1.0.jar:sorma2.jar" \
42+ java -classpath " .:sqlite-jdbc-3.50 .1.0.jar:sorma2.jar" \
4343 com/zoffcc/applications/sorm/Generator " gen"
4444```
4545
@@ -79,7 +79,7 @@ see: https://github.com/zoff99/sorma2/tree/master/test
7979
8080<img src =" https://github.com/zoff99/sorma2/releases/download/nightly/console_screen.png " width =" 70% " >
8181
82- Use the ` sorma_generated.jar ` (that is generated in the ` gen ` directory) and ` sqlite-jdbc-3.49 .1.0.jar ` for the Java project.<br >
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 >
8383Check ` TestSorma.java ` for an Example usage.
8484<br >
8585
Original file line number Diff line number Diff line change 1616
1717public class Generator {
1818 private static final String TAG = "Generator" ;
19- static final String Version = "0.99.1 " ;
19+ static final String Version = "0.99.2 " ;
2020 static final String prefix = "_sorm_" ;
2121 static final String tbl_f_ext = ".java" ;
2222 static final String tbl_s_ext = ".sql" ;
Original file line number Diff line number Diff line change 11#! /bin/bash
22
33javac \
4- -cp " sqlite-jdbc-3.49 .1.0.jar" \
4+ -cp " sqlite-jdbc-3.50 .1.0.jar" \
55com/zoffcc/applications/sorm/Column.java \
66com/zoffcc/applications/sorm/Index.java \
77com/zoffcc/applications/sorm/Log.java \
Original file line number Diff line number Diff line change 11#! /bin/bash
22
33java \
4- -classpath " .:sqlite-jdbc-3.49 .1.0.jar:sorma2.jar" \
4+ -classpath " .:sqlite-jdbc-3.50 .1.0.jar:sorma2.jar" \
55com/zoffcc/applications/sorm/Generator " gen" || exit 1
66
77cd gen/
88javac \
9- -cp " sqlite-jdbc-3.49 .1.0.jar" \
9+ -cp " sqlite-jdbc-3.50 .1.0.jar" \
1010com/zoffcc/applications/sorm/* .java && \
1111jar cf sorma_generated.jar com/zoffcc/applications/sorm/* .class && \
1212cp sorma_generated.jar ../test/ && \
@@ -15,12 +15,12 @@ cd ../ || exit 1
1515# use generated custom jar
1616cd test/
1717javac \
18- -classpath " .:sqlite-jdbc-3.49 .1.0.jar:sorma_generated.jar" \
18+ -classpath " .:sqlite-jdbc-3.50 .1.0.jar:sorma_generated.jar" \
1919org/example/TestSorma.java || exit 1
2020
2121rm -f main.db
2222
2323java \
24- -classpath " .:sqlite-jdbc-3.49 .1.0.jar:sorma_generated.jar" \
24+ -classpath " .:sqlite-jdbc-3.50 .1.0.jar:sorma_generated.jar" \
2525org/example/TestSorma || exit 1
2626
You can’t perform that action at this time.
0 commit comments