I have just purchased Minecraft Dungeons and when I installed it in the Minecraft Launcher, I had to create a Microsoft account, since my Mojang account has no longer been migrated.
When the Minecraft Dungeons was successfully installed I'm no longer able to play the Minecraft Java Edition. I have tried from both the new Microsoft account and the old Mojang account where I used to play it. I only have the option to buy Minecraft Java Edition again, that obviously, I don't want to to again since I have already bought it 2 years ago.
Thanks for helping me on this issue
Linked issues
Comments

Thank you for your report!
We're tracking this issue in MCL-16570, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
-- I am a bot. This action was performed automatically! Please report any issues on Discord or Reddit
Please check out this help article: https://help.minecraft.net/hc/en-us/articles/360029643892-Can-only-play-Minecraft-demo-Java-Edition-
If that does not solve your issue, please contact Mojang Support.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki