This week's book giveaways are in the Jython/Python and Object-Oriented programming forums.
We're giving away four copies each of Machine Learning for Business: Using Amazon SageMaker and Jupyter and Object Design Style Guide and have the authors on-line!
See this thread and this one for details.
Win a copy of Machine Learning for Business: Using Amazon SageMaker and JupyterE this week in the Jython/Python forum
or Object Design Style Guide in the Object-Oriented programming forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

HIBERNET

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Its posible the use of hibernet in batch procesing in a aplication(not web)?,in such case which is the specification that i had to look for?
 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you provide additional info about your problem? Thanks
 
ranger
Posts: 17344
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hibernate and JPA can do mass updates/inserts/deletes, but you need to be careful that you either use the underlying JDBC Connection directly, or the new ways to do them, you will need to look at the APIs to get that.

Also, in terms of JDBC Batch processing, all Hibernate flushes occur using JDBC Batch processing.

Mark
 
MARIO DAVILA
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Mark Spritzler:
Hibernate and JPA can do mass updates/inserts/deletes, but you need to be careful that you either use the underlying JDBC Connection directly, or the new ways to do them, you will need to look at the APIs to get that.

Also, in terms of JDBC Batch processing, all Hibernate flushes occur using JDBC Batch processing.

Mark



thanks Mark .Im using unix whit db2 Do you think that a java aplication whit hibernet would have a good performanse against cobol?
 
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by MARIO DAVILA:
Do you think that a java application whit hibernate would have a good performance against Cobol?



That is a difficult question to answer. However it is likely that the Cobol implementation could out-perform the Java/Hibernate combination. But even if that us is true - it still would be difficult to predict how much slower the Java/Hibernate combo actually would be. This is also heavily influenced by how good the designs of the both the Cobol and Java/Hibernate implementations are.

The only way to find out is to select a processing and I/O intensive sub-function of the existing implementation and to implement it in Java/Hibernate and compare the respective performances.

However performance is only one dimension of any solution. Java/Hibernate has the added advantage that it is much easier to move to TDD - eventually all your code will be under automated unit test, so that any future changes are easier and can be made with more confidence.

Java also creates the opportunity to create a Domain Model, if the business domain that the batch is working on is particularly complex.

Code written against domain model objects tends to express the business process and rules directly rather than burying them deep inside of low level code. A Domain Model that is well matched with the business domain also tends to easier to adapt to changing business needs.

So even if Cobol performs (slightly) better there are still plenty of good reasons to go the Java/Hibernate route (provided the potential is exploited appropriately).
 
Could you hold this kitten for a sec? I need to adjust this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!