This repository contains examples for Android with generated code, use-cases and tests of the annotation based Code Generator that integrates with existing Android and Java based development environments.
It shows
-
creating SQL database peer classes including the DDL
-
the versioning mechanism via the SQLiteOpenHelper
-
ContentProvider with create/read/update/delete implementations
-
inline model definitions via source level annotations
no additional files duplicating the model definitions are required
- Android Studio 3.0 and Gradle 3.0.0
- built-in annotationProcessor instead of android-apt plugin
- added support for 'short' and 'java.lang.Short'
- Added more tests for basic and advanced datatypes
- Enhanced tests of the sql timestamp with nanoseconds resolution
You need gradle to build the examples e.g. with Android Studio
gradle build
will build the APK and run the tests.
for the examples of this repository
Copyright (C) 2017 Klaus Sausen
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.