sermore / spring-ou-tree-list

A spring-boot simple application with a REST endpoint to manage hierarchical data. This application is the REST data backend for the flutter project ou_tree_list.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

spring-ou-tree-list

A spring-boot simple application with a REST endpoint to manage hierarchical data. This application is the REST data backend for the flutter project ou_tree_list.

Features:

  • query ancestors and descendants with SQL CTE, with breadth first ordering
  • use JPA @SqlResultSetMapping and @ConstructorResult to map native queries to DTO
  • the default datasource points to a local postgresql db, which can be started with docker with command docker run -p 5432:5432 -e POSTGRES_PASSWORD=postgres -d postgres
  • Produce random data adding the number of items to create as command line parameter
    • running with java java -jar target/spring-ou-tree-list-0.0.1-SNAPSHOT.jar 100
    • running with maven mvn spring-boot:run -Dspring-boot.run.arguments=1000

Reference Documentation

About

A spring-boot simple application with a REST endpoint to manage hierarchical data. This application is the REST data backend for the flutter project ou_tree_list.


Languages

Language:Java 100.0%