How to create java class code from sqlite database for ORMLite

Given the sqlite database as input, I want to know how I can create an ORMLite java class that maps to the corresponding database. Thanks a lot .

+5
source share
3 answers

You can try Telosys Tools , the Eclipse code generation plugin works from an existing database with custom speed templates.

See: https://sites.google.com/site/telosystools/

A set of templates is available for GitHub for JPA:

//github.com/telosys-tools-community/jpa-templates-TT206-v2

Java JPA ORMLite, Java- ORMLite

Spring MVC JPA:

//sites.google.com/site/telosystutorial/springmvc-jpa-springdatajpa ( JPA)

+3

ORMLite .

SQLite SQL "sql" "sqlite_master".

, ; Excel ADO Java POJO, IDE.

, .

+1

, ORMLite - . SQLite, , - .

, :

  • INTEGER → int
  • VARCHAR →
  • BOOLEAN → boolean
  • TIMESTAMP →
  • BIGINT → ...

TableUtils.getCreateTableStatements(ConnectionSource, Class<T>), , . , .

0

All Articles