Gang,
I've added a "SQL Support Sample" to the SDK.
It demonstrates how to use SQL EntityStore and SQL Index/Query in a
"full blown" Application.
It uses a MemoryEntityStore for the Configuration entities but the
assembly code shows (commented) how to use a PreferencesEntityStore
instead if needed.
The documentation is here: http://qi4j.org/_sql_support_sample.html
@Jiri: this should get you started
@Niclas: SQL Index/Query assembly need some more love, I'll update the
documentation when done.
@Niclas: yep, the DataSourceServiceImporter thing can seems a little
convoluted at first but it is really convenient. Among other things, it
automatically wraps DataSources with Circuit Breakers. Rickard wrote
this and I maintained it after that. It works well. The sample
demonstrate how to use two different datasources, one for the
EntityStore, the other one for the Index/Query.
/Paul
_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev