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 8777987
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T19:24:52+00:00 2026-06-13T19:24:52+00:00

I am using HIbernate version 3.2.5. I read the below line in hibernate tutorials:

  • 0

I am using HIbernate version 3.2.5.

I read the below line in hibernate tutorials:

The no-argument constructor is a requirement for all persistent classes.Hibernate has to create objects for you, using Java Reflection. The constructor can be private

This is the link for the tutorial:

http://docs.jboss.org/hibernate/orm/3.3/reference/en/html/tutorial.html

But when I write a persistence class without a no-arg constructor, then also it works fine (I tried only retrieval part).

Hence where lies the validity of the above statement?

Please let me know if I am getting something worng.

Regards,

  • 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-13T19:24:54+00:00Added an answer on June 13, 2026 at 7:24 pm

    If you don’t have any constructor in persistent class, JVM by default creates no-arg constructor for you, that is the reason why your code is working fine.

    Read this tutorial to understand more about constructors.

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

Sidebar

Related Questions

I am using Hibernate 3 version for my Application . While going through tutorials
I'm using both Hibernate annotations and Sybase. I'm looking to setup a version column
I've read in this post that all the ProxyFactory dependency was removed by using
We have a requirement for persisting, using Hibernate, versioned Java objects into an Oracle
Tomcat Version :5.0.28 JDK: 1.5.0.14 The problem: I am using both hibernate and struts
I am using hibernate and a version column is provided for the hibernate locking
Hibernate version 3.6 I am trying to do a partial schema export using hbm2dll
I have an application using hibernate 3.1 and JPA annotations. It has a few
Using version Hibernate Validator 4.3.0.Final. When I make the following call: Set<ConstraintViolation<T>> violations =
I'm using Hibernate Tools 3.2.1.GA with Spring version 3.0.2. I'm tying to insert data

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.