The Griffon db4o plugin enables lightweight access to database functionality using db4o.
The current version of griffon-db4o is 0.4.
Upon installation the plugin will generate the following artifacts at $appdir/griffon-app/conf:
- Db4oConfig.groovy - contains the datasource definition.
- BootstrapDb4o.groovy - defines init/destroy hooks for data to be manipulated during app startup/shutdown.
A new dynamic method named withDb4o will be injected into all controllers, giving you access to an com.db4o.ObjectContainer instance, with which you'll be able to make calls to the database. Remember to make all calls to the database off the EDT otherwise your application may appear unresponsive when doing long computations inside the EDT.
For more details and a complete example please see:
http://docs.codehaus.org/display/GRIFFON/Db4o+Plugin
-
Posted by flyfeather on 7/28/2011 1:19 AM
Sounds good, try it back
Loading, please waiting...