Skip to content
Core ORMLite functionality that provides a lite Java ORM in conjunction with ormlite-jdbc or ormlite-android
Java TeX
Branch: master
Clone or download

Latest commit

Fuud support schema name qualifier for tables (#173)
* support schema name qualifier for tables

* support schema name qualifier for tables: restore old method to support backward compatibility

* support schema name qualifier for tables: small fixes after review

* support schema name qualifier for tables: small fixes after review

* support schema name qualifier for tables: trunkate schema-test

* support schema name qualifier for tables: revert deletion of deprecated method
Latest commit 9d5ac18 Mar 23, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci cp Jul 2, 2018
src support schema name qualifier for tables (#173) Mar 23, 2020
.gitignore added idea stuff May 31, 2016
LICENSE.txt
README.md Update README.md Apr 25, 2018
pom.xml Use HTTPS instead of HTTP to resolve dependencies Feb 11, 2020

README.md

ORMLite Core

This package provides the core functionality for the JDBC and Android packages. Users that are connecting to SQL databases via JDBC will need to download the ormlite-jdbc package as well. Android users should download the ormlite-android package as well as this core package.

ORMLite is easy to use and provides the following features:

Enjoy, Gray Watson

Code Example

The following is a quick code example to give you a taste on how to use the library.

// this uses h2 but you can change it to match your database
String databaseUrl = "jdbc:h2:mem:account";
// create a connection source to our database
ConnectionSource connectionSource = new JdbcConnectionSource(databaseUrl);

// instantiate the DAO to handle Account with String id
Dao<Account,String> accountDao = DaoManager.createDao(connectionSource, Account.class);

// if you need to create the 'accounts' table make this call
TableUtils.createTable(connectionSource, Account.class);

// create an instance of Account
String name = "Jim Smith";
Account account = new Account(name, "_secret");

// persist the account object to the database
accountDao.create(account);

// retrieve the account
Account account2 = accountDao.queryForId(name);
// show its password
System.out.println("Account: " + account2.getPassword());

// close the connection source
connectionSource.close();

ChangeLog Release Notes

See the ChangeLog.txt file.

You can’t perform that action at this time.