Beginners doubt on JPA entity foreign mapping

Hi I am new to jpa's and am learning of foreign key mappings between two table. I need resources to learn on Jakarta JPA manytoone mappings. I had a doubt on it , to me ,JPA seems like an inherited interface to database/sql operations, so why does it matter if we implement foreign key mapping or not ,if it can be handled by Sql engines well ?
4 Replies
JavaBot
JavaBot2w ago
This post has been reserved for your question.
Hey @CJ__47! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
dan1st
dan1st2w ago
Gist
JPA data class checklist and example persistence.xml for EclipseLink
JPA data class checklist and example persistence.xml for EclipseLink - Data_class_checklist.md
dan1st
dan1st2w ago
it's very simplified but it should work for declaring entities
JavaBot
JavaBot2w ago
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one. In case your post is not getting any attention, you can try to use /help ping. Warning: abusing this will result in moderative actions taken against you.
Want results from more Discord servers?
Add your server