Skip navigation links

MySQL Forums :: Connector/JDBC and Java :: Pass Java object to stored Procedure


Advanced Search

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:

http://javahowto.blogspot.com/2006/07/helloworld-with-jpa-toplink-and-mysql.html

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
http://www.oracle.com/mysql/

Options: ReplyQuote


Subject Written By Posted
Pass Java object to stored Procedure sanjeev M 02/13/2012 12:25AM
Re: Pass Java object to stored Procedure Todd Farmer 02/13/2012 02:05PM
Re: Pass Java object to stored Procedure sanjeev M 02/13/2012 06:54PM
Re: Pass Java object to stored Procedure Todd Farmer 02/14/2012 04:21AM
Re: Pass Java object to stored Procedure sanjeev M 02/15/2012 02:08AM
Re: Pass Java object to stored Procedure Todd Farmer 02/15/2012 11:31AM
Re: Pass Java object to stored Procedure peter thomas 03/07/2012 01:43AM


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.