How to get LiveDB sample work
←Older revision | Revision as of 23:30, 8 December 2010 | ||
Line 1: | Line 1: | ||
+ | =Why I need this= | ||
+ | I design a simple ontology based knowledge management system. I think I'll make good use of [[LiveDB]]. | ||
+ | |||
+ | |||
==How to get LiveDB sample work== | ==How to get LiveDB sample work== | ||
- | I may learn meantime :) | + | Also I may learn in the meantime :) |
+ | |||
+ | I use [[NetBeans]] Development build to try this (I get the sources with hg, i do `hg fetch` then `ant update` daily) I run NB from nbbbuild with `ant tryme` | ||
+ | |||
+ | '''Before testing I created JavaDB database, with APP database schema AGE table and two coulumns AGE,NAME in it also I changed the jdbc URL to point my database and added derbyclient.jar as a library''' | ||
+ | |||
+ | '''I have the `nbbuild/testuserdir/var/index/cache` directory empty''' | ||
+ | |||
+ | |||
+ | scenario 1 | ||
+ | #Start [[NetBeans]] with `ant tryme` | ||
+ | #>NB opens LiveDB project | ||
+ | #!I have 2 Symbol not found errors (this is OK) | ||
+ | #I build LiveDB project | ||
+ | #I connect to my database scheme in Window>Services>Databases>JavaDB> | ||
+ | #I compile Test package `org.apidesign.livedb.example` | ||
+ | #! `List<Age>` is showing Cannot find Symbol | ||
+ | #I Test LiveDB project | ||
+ | #>Test runs without error | ||
+ | #! Still have Cannot find Symbol in `List<Age>` | ||
+ | #I Scan for External changes | ||
+ | # | ||
+ | |||
+ | |||
+ | Scenario 2 | ||
+ | #I: delete directory: nbbuild/var/cache/index | ||
+ | #I: Start [[NetBeans]] with `ant tryme` | ||
+ | #NB: opens LiveDB project | ||
+ | #NB:scanning projects | ||
+ | #NB: indexing project files | ||
+ | #I:clean livedb project | ||
+ | #NB: cannot find symbol Age (3 times: List<Age>, Age.query(),Age age) | ||
+ | #I:connect JavaDB through jdbc | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
- | |||
- | |||
- | |||
- | |||
# Clean and build livedb project | # Clean and build livedb project |