This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Gettting multiple data at a ago into the database when a call is made to em.persist Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Gettting multiple data at a ago into the database when a call is made to em.persist" Watch "Gettting multiple data at a ago into the database when a call is made to em.persist" New topic
Author

Gettting multiple data at a ago into the database when a call is made to em.persist

Wal Samaad
Greenhorn

Joined: Jan 20, 2010
Posts: 17
I am developing an app that needs to use EJB and persistence API extensively. I would want to know if it is posssible to insert multiple data at a ago into the database when you call em.persist(). I have a code structure but each i call the method, it only execute once and stop. I get my parameters from the webpage and connect to database using helper classes and do multiple iteraion and insertions to get my data into the database.
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

KeepItDown. I have changed your title to lowercase.


[My Blog]
All roads lead to JavaRanch
 
wood burning stoves
 
subject: Gettting multiple data at a ago into the database when a call is made to em.persist
 
Similar Threads
Detached Entity Exception in JPA (Detached entity passed to persist)
find and persist in the same trans.
How do you get underlying sql exceptions when using Java persistence
Persit method strange behaviour
Calling Oracle stored procedures in JRun container