اختيار أسلوب التخزين الدائم
في هذا الدرس 4 موضوعات
هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.
نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.
في هذا الدرس
compare JDBC, jOOQ, and JPA and justify a choice.
الموضوعات المخطط لها
- JDBC /
JdbcClient/JdbcTemplate: full control, minimal dependencies, manual mapping and no compile-time checks. - jOOQ: type-safe SQL, great for reports and complex queries; you manage writes and mapping yourself.
- JPA: productivity for CRUD and aggregates; the cost is hidden SQL and the learning curve.
- Decide per use case: team skill, query complexity, write shape, performance needs.
- Mixing is fine if each module has one approach and transaction management is shared.
تفاصيل المخطط المبدئي
عرض عملي
a decision table with columns: use case, complexity, writes/reads, choice, reason.
اختبر فهمك
Which tool for a 10-join report with window functions?
أظهر الإجابة
jOOQ, or plain SQL, rather than JPA.
التطبيق
طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.
تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.