Make sure your classes include a key
attribute, unique. Otherwise, one random key is assigned for you and all sorts of funny and entertaining side effects may occur...
NOTE that these classes below won't work with persistence until you run this story - which will register and connect the postgress and other databases.
First class is annotated for persistance, although annotations are static and we prefer the registration, see below:
anno ( inventory="diesel.db.postgres"
="diesel.db...)
key, |
ip <@column>, |
sectors:Array[SampleSector], |
template:<>SampleTemplate, |
cpes:<>Array[SampleCpe], |
key, |
ip <@column>, |
sectors:Array[SampleSector], |
template:<>SampleTemplate, |
cpes:<>Array[SampleCpe] |
This classes are registered, see the register
message below - this is the preferred approach, as it's more dynamic:
key, |
ip, |
courseRef:<>TestCourse, |
key, |
ip, |
courseRef:<>TestCourse |
anno ( inventory="diesel.db.col"
="diesel.db...)
key, |
someValue, |
key, |
someValue |
Note that inside a class definition, you can't have free text, just other constructs.
$when::
TestClass1.simpleMsg
a.b
anno ( prop3="value"
="value")
anno ( prop1="value"
="value", prop2="value"
="value")
parm1, |
slainvokedid:<>SLA, |
list3:Array[TestContainer], |
parm1, |
slainvokedid:<>SLA, |
list3:Array[TestContainer] |
You need to log in to post a comment!