https://github.com/sismics/play-nativedb
This module provides a native DB subsystem for Play! Framework 1 applications.
https://github.com/sismics/play-nativedb
db h2 hibernate jpa mysql play play-framework postgresql
Last synced: about 1 month ago
JSON representation
This module provides a native DB subsystem for Play! Framework 1 applications.
- Host: GitHub
- URL: https://github.com/sismics/play-nativedb
- Owner: sismics
- License: apache-2.0
- Created: 2017-02-15T05:17:01.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-12-28T10:04:09.000Z (over 5 years ago)
- Last Synced: 2025-10-13T06:43:56.340Z (8 months ago)
- Topics: db, h2, hibernate, jpa, mysql, play, play-framework, postgresql
- Language: Java
- Homepage:
- Size: 62.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/sismics/play-nativedb/releases/latest)
[](https://opensource.org/licenses/Apache-2.0)
# play-nativedb plugin
This module provides a native DB subsystem for Play! Framework 1 REST applications.
It uses the native JPA API internally and doesn't require any other library.
# Features
- Generic DAO structure for native (pure SQL) queries, with criteria API, result mapping, sorting and grouping
- Filtering on arbitrary columns types. Provides a few filters (strings, numbers, dates...), you can extend with your own filters.
- Support for paginated lists
- Wrapper functions for DB compatibility (H2, PostgreSQL, MySQL)
- Admin console to debug queries in realtime
# How to use
#### Add the dependency to your `dependencies.yml` file
```
require:
- nativedb -> nativedb 1.2.0
repositories:
- sismicsNexusRaw:
type: http
artifact: "https://nexus.sismics.com/repository/sismics/[module]-[revision].zip"
contains:
- nativedb -> *
```
# Enable the admin console
The admin console allows you to monitor queries in realtime.
Add the following parameter to enable the admin console:
```
nativedb.console.enabled=true
```
Note: the admin console is enabled by default in Dev mode.
### Secure the admin console
Add the following parameter to secure the admin console
```
nativedb.console.username=console
nativedb.console.password=pass1234
```
# License
This software is released under the terms of the Apache License, Version 2.0. See `LICENSE` for more
information or see .