https://github.com/edvin/tornadofx-hibernate-demo
TornadoFX Hibernate Integration Demo
https://github.com/edvin/tornadofx-hibernate-demo
Last synced: 3 months ago
JSON representation
TornadoFX Hibernate Integration Demo
- Host: GitHub
- URL: https://github.com/edvin/tornadofx-hibernate-demo
- Owner: edvin
- Created: 2018-02-13T15:39:00.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-13T15:49:49.000Z (over 7 years ago)
- Last Synced: 2025-02-28T19:53:49.583Z (3 months ago)
- Language: Kotlin
- Size: 6.84 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TornadoFX Hibernate Example
A simple example of using Hibernate with TornadoFX. The application is a small
Vendor database where you can perform CRUD operations, including inline editing.It's using an in memory H2 database which will be populated with sample data on start.
I did not use `beforeShutdown { }` to register the `sessionFactory.close()` callback
because Hibernate was preventing the shutdown hook from running, so I overrode `App.stop()`
instead, because that is called earlier in the shutdown cycle.