MySQL Forums
Forum List  »  Connector/JDBC and Java

Re: Pass Java object to stored Procedure
Posted by: Todd Farmer
Date: February 14, 2012 04:21AM

Hi Sanjeev,

An appropriate JPA engine will map the Java object properties to database table columns and will manage the INSERT/DELETE/UPDATE/SELECT operations necessary to interact with the database. I see no value in using stored procedures in this context. In general, a stored procedure will provide performance gains when you want to move some part of your application operations and business logic into the database (or to standardize business logic across multiple platforms).

Are you already familiar with Java development using JPA? If that's the area you are having trouble, there are some great resources available on the internet:

I really think you're headed the wrong direction in trying to use stored procedures with Java objects, or to use stored procedures with JPA (generally). And MySQL Workbench doesn't really factor into this solution, either.

I hope that helps!

Todd Farmer
MySQL @ Oracle

Options: ReplyQuote

Written By
Re: Pass Java object to stored Procedure
February 14, 2012 04:21AM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.