![]() | ![]() | ![]() | ![]() | ![]() | ![]() | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() | ![]() | ![]() | ![]() | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() | ![]()
|
Running the self-executable Castor JDO examples
Documentation Author(s): Download the castor-$RELEASE-examples.zip archive Unpack the ZIP file Running the Castor JDO samples What happens Hints Download the castor-$RELEASE-examples.zip archiveIn order to be able to run the new Castor JDO examples, please download the new castor-${RELEASE}-examples.zip from the download page and put it into some location on your computer. Unpack the ZIP fileTo unpack the ZIP file downloaded, please issue one of the following commands:
or
You can now run the examples using the directions provided in the next section. Running the Castor JDO samplesIn the directory where you have unpacked the ZIP file downloaded, you'll find a castor-1.0M3-examples.jar. In addition, a directory named 'lib' had been created, where you'll find several JAR files required to run the samples. To execute he samples, please issue the following command:
... et voila ! You'll see various lines of logging output flashing by, whilst the Castor JDO samples are executing against a database. What happensThe Castor JDO sample will test persistence between a set of Java classes (Product, ProductGroup, ProductDetail, etc.) and perform this code against an Apache Derby instance as RDBMS. For this purpose, the sample code will start an embedded Derby instance on the fly, create the required tables, and then continue to execute several code fragments using various Castor JDO artefacts (JDOManager, Database, etc.) against this embedded database. In other words, everything is self-contained, and there is no need anymore to install a database, create a database schema and all the required tables. Everything required is initiated and setup from within the sample code. Hints
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() ![]() | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() | ![]() | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() | ![]() | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |