An example Java application demonstrating TigrisDB's usage

Overview

tigrisdb-starter-java

A starter Java application for TigrisDB.

java-ci

Key points

Schema

TigrisDB schemas are located in src/main/resources/tigrisdb-schema.

Example schema

{
  "name": "User",
  "description": "This document records the details of user for tigris store",
  "properties": {
    "id": {
      "description": "A unique identifier for the user",
      "type": "int"
    },
    "name": {
      "description": "Name of the user",
      "type": "string"
    },
    "balance": {
      "description": "user balance in USD",
      "type": "double"
    }
  },
  "primary_key": [
    "id"
  ]
}

Schema to model generation

TigrisDB maven plugin reads these JSON schema files and generates Java models. Refer in pom.xml for com.tigrisdata.tools. code-generator:maven-plugin usage.

<plugin>
    <groupId>com.tigrisdata.tools.code-generator</groupId>
    <artifactId>maven-plugin</artifactId>
    <!-- we are still pre-release -->
    <version>1.0-SNAPSHOT</version>

    <executions>
        <execution>
            <goals>
                <goal>generate-sources</goal>
            </goals>
        </execution>
    </executions>
    <configuration>
        <schemaDir>src/main/resources/tigrisdb-schema</schemaDir>
        <packageName>com.tigrisdata.store.generated</packageName>
        <outputDirectory>target/generated-sources</outputDirectory>
    </configuration>
</plugin>

Operating on models

TigrisDB client API supports these generated models. You can use them to represent your document.

User alice = new User(1,"Alice");

TigrisCollection<User> userCollection=db.getCollection(User.class);
userCollection.insert(alice);

Restful endpoints

This starter application exposes restful endpoints, to play around with it. Go to http://localhost:8080/swagger.html

swagger_ui_screenshot.png

Note

We are still in pre-release and so SNAPSHOT artifacts are consumed.

You might also like...

For Jack language. Most of codes were commented with their usage, which can be useful for beginner to realize the running principle of a compiler for object-oriented programming language.

Instructions: Download the Java source codes Store these codes into a local folder and open this folder Click the right key of mouse and click ‘Open i

Jan 5, 2023

Bank Statement Analyzer Application that currently runs in terminal with the commands: javac Application.java java Application [file-name].csv GUI coming soon...

Bank Statement Analyzer Application that currently runs in terminal with the commands: javac Application.java java Application [file-name].csv GUI coming soon...

May 21, 2022

This project contains a full example of an application developed using Spring Boot and GraphQL within the Java.

Spring boot GraphQL Example This project contains a full example of an application developed using GraphQL within the Java. The project includes a com

Jul 20, 2022

Shopping Example Application

Shopping Example Application

MSA, Event Sourcing, Domain Driven Design example application written using Test-Driven Development - TDD and Inversion of Control and Dependency Injection with Quarkus written in Java

Sep 12, 2022

Java upgrade example errors and solutions

Java upgrade example errors and solutions This project shows the errors encountered during a Java upgrade and the necessary fixes. Per Java version th

Dec 31, 2022

A TUI written in Java to count votes, for example of a election.

Countvotes This is a project written entirely in Java that allows you to count votes. It is based on a TUI that allows you to dynamically add new peop

Feb 1, 2022

An example project showing how to enable tiered compilation on a Java AWS Lambda function.

An example project showing how to enable tiered compilation on a Java AWS Lambda function.

AWS Lambda Tiered Compilation Sample Getting started Download or clone the repository. To install prerequisite software: Install AWS CDK Install Apach

Dec 13, 2022

This repository is for Todo application. This contains the Backend part of the application.

Todo Application 개요(Abstract) 개인용 할일 목록 리스트 앱플리케이션 구축 (Personal Todo List Application) 목적 1. React.js기초, AWS서버 활용, 스프링 부트 공부 목적으로 프로젝트 시작했습니다.

Jan 8, 2022

Android application made during an introduction class to mobile application development.

Reflex Revolution Android application made during an introduction class to mobile application development. Contributors Hailey Savoie Carter Moore Fre

Aug 27, 2022
Releases(1.0.0-alpha.17)
  • 1.0.0-alpha.17(Jun 11, 2022)

    What's Changed

    • fix: Updated starter app to be compatible with 1.0.0-alpha17 client by @JigarJoshi in https://github.com/tigrisdata/tigris-starter-java/pull/29

    Full Changelog: https://github.com/tigrisdata/tigris-starter-java/compare/1.0.0-alpha.16...1.0.0-alpha.17

    Source code(tar.gz)
    Source code(zip)
  • 1.0.0-alpha.16(Jun 2, 2022)

    What's Changed

    • Feat: Update the readme to point to the docs website by @ovaistariq in https://github.com/tigrisdata/tigris-starter-java/pull/26
    • fix: Updated to use client library at 1.0.0-alpha.15 by @JigarJoshi in https://github.com/tigrisdata/tigris-starter-java/pull/27
    • 1.0.0 alpha.16 update by @JigarJoshi in https://github.com/tigrisdata/tigris-starter-java/pull/28

    New Contributors

    • @ovaistariq made their first contribution in https://github.com/tigrisdata/tigris-starter-java/pull/26

    Full Changelog: https://github.com/tigrisdata/tigris-starter-java/compare/1.0.0-alpha.13...1.0.0-alpha.16

    Source code(tar.gz)
    Source code(zip)
  • 1.0.0-alpha.13(May 24, 2022)

    What's Changed

    • fix: Update client library by @JigarJoshi in https://github.com/tigrisdata/tigris-starter-java/pull/25

    Full Changelog: https://github.com/tigrisdata/tigris-starter-java/compare/1.0.0-alpha.12...1.0.0-alpha.13

    Source code(tar.gz)
    Source code(zip)
  • 1.0.0-alpha.12(May 12, 2022)

    What's Changed

    • fix: Upgraded to 1.0.0-alpha.12 client version by @JigarJoshi in https://github.com/tigrisdata/tigris-starter-java/pull/24

    Full Changelog: https://github.com/tigrisdata/tigris-starter-java/compare/1.0.0-alpha.11...1.0.0-alpha.12

    Source code(tar.gz)
    Source code(zip)
  • 1.0.0-alpha.11(May 5, 2022)

  • 1.0.0-alpha.10(May 4, 2022)

    What's Changed

    • fix: Update starter app to be compatible with 1.0.0-alpha.7 by @JigarJoshi in https://github.com/tigrisdata/tigris-starter-java/pull/18
    • fix: renamed tigrisdb-->tigris by @JigarJoshi in https://github.com/tigrisdata/tigris-starter-java/pull/19
    • fix: upgraded library to 1.0.0-alpha.9 by @JigarJoshi in https://github.com/tigrisdata/tigris-starter-java/pull/20

    Full Changelog: https://github.com/tigrisdata/tigris-starter-java/compare/1.0.0-alpha.6...1.0.0-alpha.10

    Source code(tar.gz)
    Source code(zip)
  • 1.0.0-alpha.9(Apr 29, 2022)

  • 1.0.0-alpha.8(Apr 26, 2022)

    What's Changed

    • fix: Update starter app to be compatible with 1.0.0-alpha.7 by @JigarJoshi in https://github.com/tigrisdata/tigris-starter-java/pull/18

    Full Changelog: https://github.com/tigrisdata/tigris-starter-java/compare/1.0.0-alpha.6...1.0.0-alpha.8

    Source code(tar.gz)
    Source code(zip)
  • 1.0.0-alpha.7(Apr 26, 2022)

  • 1.0.0-alpha.6(Apr 21, 2022)

    What's Changed

    • fix! Updated starter application to be 1.0.0-alpha.6 compatible by @JigarJoshi in https://github.com/tigrisdata/tigrisdb-starter-java/pull/17

    Full Changelog: https://github.com/tigrisdata/tigrisdb-starter-java/compare/1.0.0-alpha.2...1.0.0-alpha.6

    Source code(tar.gz)
    Source code(zip)
  • 1.0.0-alpha.2(Apr 13, 2022)

    What's Changed

    • feat: Upgraded tigrisdb-client-java libraries to 1.0.0-alpha.2 version by @JigarJoshi in https://github.com/tigrisdata/tigrisdb-starter-java/pull/13
    • docs: Renamed collection schema by @JigarJoshi in https://github.com/tigrisdata/tigrisdb-starter-java/pull/14
    • fix: Removed transaction method and left it for user to add in docs by @JigarJoshi in https://github.com/tigrisdata/tigrisdb-starter-java/pull/15
    • fix: Fixed the transactional collection by @JigarJoshi in https://github.com/tigrisdata/tigrisdb-starter-java/pull/16

    Full Changelog: https://github.com/tigrisdata/tigrisdb-starter-java/compare/1.0.0-alpha.1...1.0.0-alpha.2

    Source code(tar.gz)
    Source code(zip)
  • 1.0.0-alpha.1(Apr 12, 2022)

Owner
Tigris Data Inc
Building the next generation data infrastructure
Tigris Data Inc
Usage Example using the Your-SB-Parent-POM

Your-SB-Parent-POM-Usage Requirements Java, preferred OpenJDK 17 Maven at least 3.6.3 Install the specify parent POM from the github project: Building

Jeff Schenk 1 Jan 21, 2022
Example usage of work manager in Android, while doing this study, image downloading was preferred as a method.

android-workmanager-example Example usage of work manager in Android, while doing this study, image downloading was preferred as a method. Java 11 com

Adil Çetin 1 Jan 29, 2022
🖥 CRUD Angular + Spring demonstrating Has-Many relationship, including tests for the back-end and front-end

REST API with Spring Boot and Angular CRUD Angular + Spring demonstrating Has-Many relationship, with tests. ?? Tecnologies Java 17 Spring Boot 3 JPA

Loiane Groner 53 Dec 28, 2022
React Native app demonstrating using xmtp-js to send a message

XMTP React Native Example This is a work in progress to demonstrate importing xmtp-js into a React Native app. The example currently generates a rando

XMTP 19 Dec 20, 2022
Spring Boot Login and Registration example with MySQL, JWT, Rest Api - Spring Boot Spring Security Login example

Spring Boot Login example with Spring Security, MySQL and JWT Appropriate Flow for User Login and Registration with JWT Spring Boot Rest Api Architect

null 58 Jan 5, 2023
Spring Boot Security Login example with JWT and H2 example

Spring Boot Security Login example with JWT and H2 example Appropriate Flow for User Login and Registration with JWT and HttpOnly Cookie Spring Boot R

null 50 Dec 21, 2022
This module explains about the example of Spring MVC + Database Integration with MySQL using Hibernate ORM with practical coding example and required JAR dependencies

SpringMVC-Database-Integration This module explains about the example of Spring MVC + Database Integration with MySQL using Hibernate ORM with practic

GowthamRaj K 3 Nov 2, 2021
A lightweight messaging library that simplifies the development and usage of RabbitMQ with the AMQP protocol.

kryo-messaging This library contains a simple MessagingService which simplifies the setup and work with RabbitMQ and the AMQP protocol. Usage Gradle r

Kryonite Labs 3 Jan 10, 2022
An examples of creating test records in the database with Spring Boot + Spring Data + JPA usage.

Spring Boot + JPA — Clear Tests An examples of creating test records in the database with Spring Boot + Spring Data + JPA usage. Check out the article

Semyon Kirekov 8 Nov 24, 2022
This project demonstrates usage of Captcha, OTP APIs to access Offline eKYC XML.

Client Application to simulate offline eKYC wrapper API flow Introduction This is a Spring boot application which can be used to download offline eKYC

UIDAI 4 Oct 29, 2021