You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hi,
I have an instance of Bitbucket which has an Oracle database. I am creating a plugin where I need to use the database tables directly (not the AO tables). Is there any way to achive this?
Do I need to use a normal JPA framework inside the plugin to fetch the details? If yes, how do I get the database credentials from the APIs without the need to store them inside the code?
Hi,
I know it's been some time since you posted this but I hope my reply might help others in the future so here it is.
Plugins cannot access the database directly.
What they can then however is to use the available methods (https://developer.atlassian.com/server/framework/atlassian-sdk/atlassian-javadoc/) to read the information stored by a Bitbucket installation.
To store data instead, you'll need to rely on the Active Objects framework (https://developer.atlassian.com/server/framework/atlassian-sdk/active-objects).
Caterina
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.