-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update README and tweak project to be more portable.
- Loading branch information
Showing
4 changed files
with
64 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,34 @@ | ||
== Cayenne Example | ||
## Cayenne 4.2 JDBC ``Type.OTHER`` support demo. | ||
|
||
This example shows support for DB specific types that are not part of the JDBC spec. | ||
Apache Cayenne supports Json and Geo types that are available in many modern RDBMS. | ||
|
||
The demo uses ``Wkt`` and ``Json`` types, | ||
later additionally wrapped into custom value type ``ObjectNode`` provided by the Jackson library. | ||
|
||
### Usage | ||
|
||
Start PostGIS DB: | ||
|
||
```shell script | ||
docker run --name cayenne-postgis -p 5432:5432 -e POSTGRES_PASSWORD=cayenne -e POSTGRES_USER=cayenne -e POSTGRES_DB=cayenne-postgis -d postgis/postgis | ||
``` | ||
|
||
Build: | ||
|
||
```shell script | ||
mvn package | ||
``` | ||
|
||
Run: | ||
|
||
```shell script | ||
java -jar target/cayenne-jdbc-type-other-1.0-SNAPSHOT.jar -j | ||
java -jar target/cayenne-jdbc-type-other-1.0-SNAPSHOT.jar -g | ||
``` | ||
|
||
See Cayenne project: | ||
|
||
```shell script | ||
mvn cayenne-modeler:run | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters