Examples
Learn Jimmer through practical examples in both Java and Kotlin. Each example demonstrates different features and use cases.
π Repository Structure
Organized examples for different programming languages and environments
Java Examples
Complete Java implementations
Kotlin Examples
Kotlin language implementations
REST Client
React TypeScript client
Environment
Caching infrastructure setup
π Complete Examples Overview
All available examples with their importance ratings
Java Version | Kotlin Version | Description | Importance |
---|---|---|---|
java/jimmer-core | kotlin/jimmer-core-kt | ORM-independent examples, showcasing immer-style immutable objects |
β
β
β
β
|
java/jimmer-simple | kotlin/jimmer-simple-kt | π Perfect for beginners! Using unconditional queries as an example to demonstrate the simplest way to use Jimmer ORM |
β
β
β
β
β
|
java/jimmer-sql | kotlin/jimmer-sql-kt | ποΈ Most comprehensive! Quickly build REST services using Jimmer. This example showcases most of Jimmer's features and is the most important and fundamental example |
β
β
β
β
|
java/jimmer-sql-graphql | kotlin/jimmer-sql-graphql-kt | Quickly build GraphQL services using Jimmer |
β
β
|
java/jimmer-cloud | kotlin/jimmer-cloud-kt | A microservices project based on Spring Cloud, showcasing Jimmer's remote association |
β
|
java/save-command | kotlin/save-command-kt | A dedicated example for save commands |
β
β
β
|
π οΈ Additional Resources
Supporting tools and environments for the examples
REST Client
A React-based web application that demonstrates how to use automatically generated TypeScript code by Jimmer.
React
TypeScript
Auto-generated
View Client Example
Environment with Cache
Installation directory for external environments required to run examples with caching support.
Redis
Caffeine
Multi-layer caching
View Environment Setup
π Ready to Get Started?
Clone our examples repository and start building with Jimmer today.
Terminal
git clone https://github.com/babyfish-ct/jimmer-examples.git
cd jimmer-examples/java/jimmer-simple
./mvnw spring-boot:run