I am relatively new to this topic Active Objects and i need a good reading matter. Where can i find some examples or how tos to ActiveObjects. How to query Entities and so...
thanks for the hint...
Community moderators have prevented the ability to post new answers.
The following tutorial should help you:
https://developer.atlassian.com/display/AO/Getting+Started+with+Active+Objects
The most important things like creating and finding entities are described here:
https://developer.atlassian.com/display/AO/The+Active+Objects+Library
And of course there is an example plugin:
https://bitbucket.org/activeobjects/ao-dogfood-blog
Thanks a lot. One more question: i want to get a connection to DB to instantiate EntityManager... but i suspect it uses hsqldb in memory (atlas-create-confluence-plugin -> atlas-debug) How can i get a connection for? is it possible?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I guess you're working on a confluence plugin? In this case there is no need to use EntityManager directly:
https://developer.atlassian.com/display/AO/Creating+an+EntityManager
Just use the Active Objects Plugin:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
not realy :-) i would like to get a connection "string" to initialise EntityManager...
like:
EntityManager manager = new EntityManager("...", "user", "password");
when it is "in memory" db how can i specify connection url? ("...")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
First, this probably deserves a whole other question so that everyone can find it, possibly reply and benefit from it.
Second, why do you want to ceate your own EntityManager?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Second, why do you want to ceate your own EntityManager?
In my case, because I want to support the Plugin V3 model for an existing V2 plugin which uses ActiveObjects to store the plugin configuration on JIRA. As the Plugin V3 model requires the connect add-on to run on its own host, it would be a good approach to re-use all the current code in order to work with my own database on my own host:
V2: Add-on -> Configuration -> AO -> JIRA Database
V3: Connect add-on -> Same Configuration -> AO -> Database on my own host.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.