This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman 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 Elasticsearch in Action this week in the Big Data 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: 14688
    
  16

KeepItDown. I have changed your title to lowercase.


[My Blog]
All roads lead to JavaRanch
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Gettting multiple data at a ago into the database when a call is made to em.persist