- Tags
-
- Tags
- None
This is a plugin to allow simple hibernate/JPA2-based persistence based on DAOs with asynchronous retrieval and saving of objects.
By itself this plugin does absolutely nothing, and is an API intended to be used by developers.
Implement the RedPlugin class in your plugin, and call RedPlugin.enable after registering your class list. You can then use the built-in ObjectManager<T> to save and retrieve objects of type T asynchronously.
Example usage:
main class:
DAO class:
usage:
All the rest of it is hibernate, and there are many many pages of tutorials on that. Best used with lombok.
By itself this plugin does absolutely nothing, and is an API intended to be used by developers.
Implement the RedPlugin class in your plugin, and call RedPlugin.enable after registering your class list. You can then use the built-in ObjectManager<T> to save and retrieve objects of type T asynchronously.
Example usage:
main class:
DAO class:
usage:
All the rest of it is hibernate, and there are many many pages of tutorials on that. Best used with lombok.