Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3939168
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T00:16:07+00:00 2026-05-20T00:16:07+00:00

I need to create a general sequence diagram for the the interaction of hibernate

  • 0

I need to create a general sequence diagram for the the interaction of hibernate and a any database.

It needs to be very generic and application to all transaction between hibernate and database

What are the main methods involved in opening, fetching data and closing of a hibernate session with the database

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T00:16:08+00:00Added an answer on May 20, 2026 at 12:16 am

    A sequence diagram shows relationships between some object instances, which ones do you have mind? At one level it’s just a database and a hibernate application. In which case you’ve just done it: Open, Fetch (or other query), Close.

    Now presumably you want more detail than this, but I think we need to know why you’re drawing this diagram. Who is going to read this, what are they interested in? Consider this this simple tutorial, they show a code snippet:

    SessionFactory sessionFactory = new
    Configuration().configure().buildSessionFactory();
    Session session = sessionFactory.openSession();
    Transaction transaction = session.beginTransaction();
    BallPlayer aPlayer = (BallPlayer) session.get(BallPlayer.class, 1L);
    transaction.commit();
    session.close();
    

    So now we have several interesting objects, SessionFactory, Session and so on. For a programmer about to work with Hibernate this might be interesting. For a DBA maybe less so? You can quite easily draw a sequence diagram of the above snippet, and it has some truth in it. I can’t understand the value such a diagram, but that’s another story.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to create general actions menu for my pages. All of pages will
Disclaimer: I'm very new to SQL and databases in general. I need to create
I need to create a general handler for all ASP.NET MVC queries. Now I
I need to create a Lucene index on a Java EE application startup, but
I need to create module in Magento which will have few database tables. One
I am looking for some general feedback here. I have a very simple application
I have a general create function that submits a new user to the database
I am trying to create a general class, in which all my ASP.Net pages
I have a sql script to create a new database which i need to
I need create custom dialog and put JPanel into it. Is it possible?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.