1. search objects in chache as well as in database during batch import with hibernate stackoverflow.comI am importing large bulks(10k...100k) of data from .csv-files into a database using hibernate. I flush the session every 1000 objects or so, to make it go faster. But i also need ... |
2. inserting a batch of objects using Hibernate entity manager coderanch.comHi I went through the link, so are you saying there is no batch concept in hibernate entity manager Session session = sessionFactory.openSession(); Transaction tx = session.beginTransaction(); for ( int i=0; i<100000; i++ ) { Customer customer = new Customer(.....); session.save(customer); } tx.commit(); session.close(); Just have one doubt, when it calls session.save. Does it inserts the data everytime to the database ... |
3. Batch Update Objects whit composite-id forum.hibernate.orgHello everyone! My name is Pasquale and I'm going crazy .... :-) I have a little problem!! I need save multiple contacts of the same "Client"!! this is the mapping file: Code: |
4. Batch updates for objects forum.hibernate.orgI'm trying to figure out how to do a batch update for a persistent object I'm using. I created a BatchingBatcher and gave it the Session object I am using, but now I'm not sure what to do. Can I do batch updates on an object, or am I limited to PreparedStatements only? If it's possible, can someone post a simple ... |
5. batch insert exeption- get the object that causes the error forum.hibernate.orgI'm creating multiple objects and then i try to insert them into DB by session.flush() and then commit(). If one of those objects causes an error, the commit fails, and as the documentation says, i have to close my seesion. BUT i dont want to lose all my other objects... Is there a way to get from session the object that ... |
6. Unable to delete batch updated objects forum.hibernate.orgI want to be able to select some rows from a table, update a value in a column and persist this update back to the db for each row. Code: ScrollableResults cashflows = query.setParameter("farDate", farDate, Hibernate.DATE). setCacheMode(CacheMode.IGNORE).scroll(ScrollMode.FORWARD_ONLY); int count=0; ... |
7. Calculated fields and batch objects processing forum.hibernate.orgList |