Zolta: /* How to get LiveDB sample work */ - 2010-12-08 23:30:14

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
 +
 
 +
 
 +
 
 +
 
 +
 
-
I use [[NetBeans]] Development build (101206-535bcec0a140 ) while trying
 
-
I design a simple ontology based knowledge management system. I think I'll make good use of [[LiveDB]].
 
-
current situation:
 
-
I added derbyclient.jar to Libraries ,Test Libraries and added some Logging to org.apidesign.livedb.impl.LiveDBProcessor
 
# Clean and build livedb project
# Clean and build livedb project

Zolta: /* How to get LiveDB sample work */ - 2010-12-06 14:32:18

How to get LiveDB sample work

←Older revision Revision as of 14:32, 6 December 2010
Line 39: Line 39:
Jan Lahoda is working on this:
Jan Lahoda is working on this:
[[http://netbeans.org/bugzilla/show_bug.cgi?id=111065 Support Annotation Processors in Java Editor]]
[[http://netbeans.org/bugzilla/show_bug.cgi?id=111065 Support Annotation Processors in Java Editor]]
-
Also he provided a module to Support AnnotationProcessors
+
Also he provided a module to Support AnnotationProcessors in 6.9 I'm testing it now how it works.
 +
see [[http://kenai.com/projects/pelmel/pages/Home Pelmel]]

Zolta: /* How to get LiveDB sample work */ - 2010-12-06 14:18:59

How to get LiveDB sample work

←Older revision Revision as of 14:18, 6 December 2010
Line 37: Line 37:
But still I get cannot find symbol org.apidesign.livedb.example.Age
But still I get cannot find symbol org.apidesign.livedb.example.Age
-
 
+
Jan Lahoda is working on this:
[[http://netbeans.org/bugzilla/show_bug.cgi?id=111065 Support Annotation Processors in Java Editor]]
[[http://netbeans.org/bugzilla/show_bug.cgi?id=111065 Support Annotation Processors in Java Editor]]
 +
Also he provided a module to Support AnnotationProcessors

Zolta: /* How to get LiveDB sample work */ - 2010-12-06 13:15:37

How to get LiveDB sample work

←Older revision Revision as of 13:15, 6 December 2010
Line 37: Line 37:
But still I get cannot find symbol org.apidesign.livedb.example.Age
But still I get cannot find symbol org.apidesign.livedb.example.Age
 +
 +
[[http://netbeans.org/bugzilla/show_bug.cgi?id=111065 Support Annotation Processors in Java Editor]]

Zolta: /* How to get LiveDB sample work */ - 2010-12-06 13:01:01

How to get LiveDB sample work

←Older revision Revision as of 13:01, 6 December 2010
Line 11: Line 11:
I added derbyclient.jar to Libraries ,Test Libraries and added some Logging to org.apidesign.livedb.impl.LiveDBProcessor
I added derbyclient.jar to Libraries ,Test Libraries and added some Logging to org.apidesign.livedb.impl.LiveDBProcessor
-
 
+
# Clean and build livedb project
-
1. Clean and build livedb project
+
# Compile file Test Packages/org.apidesign.livedb.example.package-info.java
-
2. Compile file Test Packagess/org.apidesign.livedb.example.package-info.java
+
Here is the IDE Log I got:
Here is the IDE Log I got:

Zolta: how to get LiveDB example work - 2010-12-06 12:16:49

how to get LiveDB example work

New page

==How to get LiveDB sample work==

I may learn meantime :)

I use [[NetBeans]] Development build (101206-535bcec0a140 ) while trying

I design a simple ontology based knowledge management system. I think I'll make good use of [[LiveDB]].

current situation:

I added derbyclient.jar to Libraries ,Test Libraries and added some Logging to org.apidesign.livedb.impl.LiveDBProcessor


1. Clean and build livedb project
2. Compile file Test Packagess/org.apidesign.livedb.example.package-info.java

Here is the IDE Log I got:
<pre>
INFO [org.apidesign.livedb.impl.LiveDBProcessor]:
method process started
annotations:[org.apidesign.livedb.LiveDB]
roundEnv:[errorRaised=false, rootElements=[org.apidesign.livedb.example], processingOver=false]
FINE [org.apidesign.livedb.impl.LiveDBProcessor]: clsName:org.apidesign.livedb.example.Age md.getColumnCount():2
FINE [org.apidesign.livedb.impl.LiveDBProcessor]: columnName (1):ID
FINE [org.apidesign.livedb.impl.LiveDBProcessor]: columnName (2):NAME
INFO [org.apidesign.livedb.impl.LiveDBProcessor]: method process finished
INFO [org.apidesign.livedb.impl.LiveDBProcessor]:
method process started
annotations:[]
roundEnv:[errorRaised=false, rootElements=[org.apidesign.livedb.example.Age], processingOver=false]
INFO [org.apidesign.livedb.impl.LiveDBProcessor]: method process finished
INFO [org.apidesign.livedb.impl.LiveDBProcessor]:
method process started
annotations:[]
roundEnv:[errorRaised=false, rootElements=[], processingOver=true]
INFO [org.apidesign.livedb.impl.LiveDBProcessor]: method process finished
</pre>

But still I get cannot find symbol org.apidesign.livedb.example.Age