how could i do transaction in hibernate

Posted on 2012-09-12
Last Modified: 2013-02-20
i am preparing for an interview

how could i do transaction in hibernate
Question by:stmani2005
    1 Comment
    LVL 5

    Accepted Solution

    Hi there,
    i found some basic details about trnasctionin hiber nate and this will be use full during your interview.
    Transactions can be used to prevent inappropriate usage of resources.
    Transactions-handling is an important during EJB development
    Hibernate has its own transaction class and you can get it through session interface.

    Within one transaction you can do several operations and can commit transaction once after successfully completed all operations.

    The advantage here is you can rollback all previous operations if one operation is fail in your operation batch.

    Your transaction will commit when you call session.flush().

    good luck.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Suggested Solutions

    Title # Comments Views Activity
    method argument as final 1 54
    Problem to setup 18 67
    wordsFront challenge 8 47
    Books that can get me started on JAVA 2 33
    This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
    Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
    Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
    Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now