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

  • Home
  • SEARCH
  • 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 8343545
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T06:05:49+00:00 2026-06-09T06:05:49+00:00

I have a POJO class with hibernate annotations for each table in database. Also

  • 0

I have a POJO class with hibernate annotations for each table in database. Also have one HibernateUtility for my database, which creates SessionFactory.

Should I create a manager per DB table or manager per DB?

Under manager I mean a class, which does all the transactions, CRUD.

Which gives me the best performance?

  • 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-06-09T06:05:51+00:00Added an answer on June 9, 2026 at 6:05 am

    It’s usually helpful to have a DAO per table. You don’t need to write a lot of code, as you can use a generic dao.

    Performance wise: remember that you’re using hibernate, which down’t have performance as one of its pillars, but hibernate usually brings down development time. If you need performance try using myBatis or just plain jdbc.

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

Sidebar

Related Questions

I have a simple POJO mapped to a table using Hibernate. Which works just
I have one Pojo class in which I create one field which is not
I am learning Hibernate and I am stuck with annotations. I have a POJO
Let's say I have following POJO's using Hibernate. public class User { private String
I have a hibernate pojo class and it has some field. Assume that there
I have used hibernate ant tool to generate hibernate pojo classes with annotations. What
i have this POJO mapped to my MySQL database: @Entity @Table(name = participantespresentes, catalog
I have a hibernate managed POJO with a set: public class Book { private
I'm a newbie to Hibernate. I have an Item POJO which contains a Set<String>
I have pasted Hibernate 3 configuration file , SessionFactory class to configure this config.xml

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.