Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stariy95/cayenne-maven-demo
Demo project for Cayenne Maven plugin
https://github.com/stariy95/cayenne-maven-demo
apache-cayenne demo maven
Last synced: 7 days ago
JSON representation
Demo project for Cayenne Maven plugin
- Host: GitHub
- URL: https://github.com/stariy95/cayenne-maven-demo
- Owner: stariy95
- Created: 2017-06-01T08:49:31.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-08-02T09:26:39.000Z (4 months ago)
- Last Synced: 2024-08-02T10:56:50.570Z (4 months ago)
- Topics: apache-cayenne, demo, maven
- Language: Java
- Size: 8.79 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cayenne Maven Demo
## Prerequisites
You will need JDK 11+, [git](https://git-scm.com/downloads), Docker,
and [maven](https://maven.apache.org/download.cgi) installed for this demo.
## Usage
- Clone this repo: `git clone https://github.com/stariy95/cayenne-maven-demo.git`
- Run demo DB via Docker Compose: `docker-compose up`
- Run `mvn cayenne:cdbimport` to create data map from DB
- Run `mvn cayenne:cgen` to generate classes
- Run `mvn package` to compile Demo and create Jar file
- Run this demo `java -jar target/cayenne-maven-demo-1.0-SNAPSHOT.jar`## Useful links
- [Including Cayenne in Project](https://cayenne.apache.org/docs/5.0/cayenne-guide/including-cayenne-in-project/)
- [DB-First Flow](https://cayenne.apache.org/docs/5.0/cayenne-guide/re-introduction/)
- [Creating project in IDEA](https://cayenne.apache.org/docs/4.2/getting-started-guide/#create-a-new-project-in-intellij-idea)