https://github.com/simbiose/shiva
Transformer of Java Objects into SQL Queries.
https://github.com/simbiose/shiva
Last synced: 12 months ago
JSON representation
Transformer of Java Objects into SQL Queries.
- Host: GitHub
- URL: https://github.com/simbiose/shiva
- Owner: simbiose
- License: gpl-3.0
- Created: 2013-11-25T05:41:28.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-02-15T01:43:29.000Z (over 12 years ago)
- Last Synced: 2025-04-01T06:51:17.447Z (over 1 year ago)
- Language: Java
- Size: 227 KB
- Stars: 5
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Shiva
=====
Transformer of Java Objects into SQL Queries.
#What means Shiva?
Shiva is a Hindu Good of destruction and transformation
#What Shiva does?
Shiva is a java Library to convert java objects into sql queries
#How it works?
for example, if we have a class named Foo with two variables, a String called fooName and a integer called fooValue, we can do it:
Shiva.toCreateTableQuery(Foo.class);
and it will return:
CREATE TABLE package_path_Foo (fooName TEXT ,fooValue INTEGER );
or you can do:
Shiva.toDropTableQuery(Foo.class);
it will return:
DROP TABLE package_path_Foo ;
#How To
add the .jar on binary folder to your project path and use it.
see the example on Example for more details.
#Android users
to android this library has improvements on SAU library so to use it go to one of these links:
- BitBucket
- GitHub
------
Enjoy it and feel free to contribute, it's a GPL project, see LICENSE to more details.