Re: Pass Java object to stored Procedure
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/
Subject
Written By
Posted
February 13, 2012 12:25AM
February 13, 2012 02:05PM
February 13, 2012 06:54PM
Re: Pass Java object to stored Procedure
February 14, 2012 04:21AM
February 15, 2012 02:08AM
February 15, 2012 11:31AM
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.