Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

In below there is question and answer, What I need is I want comment about the a

ID: 3599065 • Letter: I

Question

In below there is question and answer, What I need is I want comment about the answer( feel free to agree or disagree with answer and explain why you agree or disagree)
Question:
Have you used any JPA “implementation”. If yes discuss your experience. If not, what are your thoughts on JPA when compared to JDBC.

Answer:
JPA allows accessing and persisting a database without the need for sql statements. I have used JPA a little bit. JPA is nice when compared to standard JDBC implementation. JPA allows you to map between objects in code and database tables and hides the SQL from the coder so that all the user has to deal with are java classes. A major issue with traditional JDBC is that the code can become confusing and hard to read when having to implement a lot of SQL statements.

Explanation / Answer

JPA implementations has various features defined by the specifications and often extend those with custom functionalities. This provides 2 main advantages:

JDBC is also the cause of SQL injection vulnerabilities, which is one of the most common security issues in web applications. The best way to avoid these issues and to be able to focus on the business logic is to use a framework or specification, like JPA, that handles these things automatically.

Also we don’t have to define any SQL data types, when you define your entity mapping. JPA implementation hides these transformations from your code and uses a default mapping.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote