This sample app demonstrates Apache Isis configured to run against Neo4J (courtesy of Isis' integration with DataNucleus).
The app consists of just two domain entities:
It also embeds a Neo4J server running on port 7474; this means that we can inspect the objects as they are created.
Install the fixture data from the menu using Prototyping > Run Fixture Script
, and select the RecreateHostsScenarioFixture
:
This will create a random (small) number of Host
insatnces. The fixture results returns links to each of these objects:
Each Host
in turn has a (random, small) number of associated IpAddress
instances. We can inspect any one of these by following the link:
Now switch to the embedded Neo4J server, running on port 7474. Click on the icon, top left:
In slides a panel. From there we can query for all available nodes:
The graph of nodes (our Host
and associated IpAddress
entities) is then shown:
Both the Host
and IpAddress
entities have a title
property, so you can use this as the label within Neo4J browser.