Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to use confluence Active Objects

Sushanth Kumar Jayanthi April 10, 2018

1)How to use custom sequence with custom primary key

How can we use the existing sequence ("SEARCHACTIVITYIDSEQ") and custom primary key("SEARCHACTIVITYID") when we create AO objects. 

public interface SearchActivityEntity extends Entity{

@PrimaryKey("SEARCHACTIVITYID")

public long getSEARCHACTIVITYID();

}

2)How to access the existing tables using AO 

We have a Table "SEARCHACTIVITY", before we used the hibernating to access this table, Now we want to use AO to access these tables, is there any way to access these existing tables with AO? 

AO creates the new table ("AO_707237_SEARCHACTIVITY" even if we specify the existing table name

@Table("SEARCHACTIVITY")

public interface SearchActivityEntity extends Entity{

...

}

2 answers

0 votes
KC Integrations
Contributor
July 12, 2021

Hi @Sushanth Kumar Jayanthi ,

Did you ever get a resolution to this, I want to do the same thing with the RECENTLY_VIEWED AO table.

0 votes
Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 10, 2018

Sushanth,

Can you let us know exactly what you're trying to do? It seems like you might be trying to develop an add-on for Confluence?

Shannon

Sushanth Kumar Jayanthi April 10, 2018

Yes we are developing a confluence-plugin, where we have to access the existing custom tables in the confluence schema (which we have added during our old confluence V5.8.13) now we are upgrading to V6.6.2, We were using hibernate ORM before and we are trying to change our ORM to AO in this upgrade.

Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 10, 2018

Thank you for confirming, Sushanth.

I am personally not familiar with developing add-ons for Confluence, but you may be able to find what you need from our Developer site. Have a look at the page I linked and see if that helps you any.

In addition, there is a Community there as well that's much more focused on Developing add-ons than this one. You may find the resources you need there.

Regards,

Shannon

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events