Where are can i find good Active Objects manual / how to

Max Madjarov
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 3, 2013

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...

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

4 votes
Answer accepted
ConradR
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 3, 2013

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

Max Madjarov
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 3, 2013

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?

ConradR
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 3, 2013

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:

https://developer.atlassian.com/static/javadoc/activeobjects/0.17.2/reference/com/atlassian/activeobjects/external/ActiveObjects.html

Max Madjarov
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 3, 2013

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? ("...")

Samuel Le Berrigaud
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 3, 2013

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?

Kinto Soft
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 10, 2013

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.

TAGS
AUG Leaders

Atlassian Community Events