Skip to content

Convert jpa apps to use Azure Cosmos DB #187

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Aug 18, 2025

Conversation

TheovanKraay
Copy link
Contributor

Pull Request Checklist

  • I have read and followed the CONTRIBUTING.md guidelines.
  • My contribution adds a new instruction, prompt, or chat mode file in the correct directory.
  • The file follows the required naming convention.
  • The content is clearly structured and follows the example format.
  • I have tested my instructions, prompt, or chat mode with GitHub Copilot.
  • I have run node update-readme.js and verified that README.md is up to date.

Description

This is an instructions.md for guiding GitHub Copilot in agent mode on converting Java projects written in JPA to use Azure Cosmos DB instead. It has been tested extensively and successfully with two complex JPA projects:


Type of Contribution

  • New instruction file.
  • New prompt file.
  • New chat mode file.
  • Other (please specify):

Additional Notes


By submitting this pull request, I confirm that my contribution abides by the Code of Conduct and will be licensed under the MIT License.

@Copilot Copilot AI review requested due to automatic review settings August 14, 2025 13:43
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a comprehensive instruction file for converting Spring JPA applications to use Azure Cosmos DB instead of traditional relational databases. The instruction provides a systematic, step-by-step guide covering dependency management, entity transformation, repository conversion, service layer creation, test updates, and critical runtime considerations.

Key Changes

  • Adds detailed migration instructions with emphasis on authentication serialization requirements
  • Provides comprehensive troubleshooting for common compilation and runtime issues
  • Includes specific patterns for maintaining template compatibility during conversion

TheovanKraay and others added 9 commits August 14, 2025 14:49
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Contributor

@aaronpowell aaronpowell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The README does not match with what is generated with the update script.

Ensure you merge main in and run the update script.

@TheovanKraay
Copy link
Contributor Author

Thanks @aaronpowell, I've done as requested.

@aaronpowell aaronpowell merged commit 178d34c into github:main Aug 18, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants