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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:56:19+00:00 2026-05-27T20:56:19+00:00

I have used hibernate ant tool to generate hibernate pojo classes with annotations. What

  • 0

I have used hibernate ant tool to generate hibernate pojo classes with annotations.
What is the POJO class generation strategy from existing tables using ANT SCRIPT?

I figured out the answer and I’m posting it.

  • 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-27T20:56:20+00:00Added an answer on May 27, 2026 at 8:56 pm
    If table column is having not null constraint, 
    then a property related to that column in generated class will be of primitive type.
    
    If table column is not having not null constraint, 
    then a property related to that column in generated class will be of java.lang.X type.
    (X == any of Integer,Byte,Float,Double depends on table column type in database)
    
    If table column is having primary key constraint, 
    then a property related to that column in generated class will be of primitive type.
    
    If table column is having primary key constraint and it is AUTO INCREAMENT OR foreign key,
    then a property related to that column in generated class will be of java.lang.X type.
    (X == any of Integer,Byte,Float,Double depends on table column type in database)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have used hibernate reverse engineering to generate my model and Dao classes i
I have used this statements to populate jcombobox from MySql database table using Hibernate
I have used maven plugin for hibernate and it has generated entity classes without
I have successfully used hibernate3-maven-plugin with Hibernate-Core and EntityManager 3.6.6-FINAL, hibernate-commons-annotations-3.2.0.Final, hibernate-jpa-2.0-api-1.0.1.Final and hibernate-validator-4.0.0.GA
I have used Hibernate in the past and I share many people's frustration with
I have a MySQL database includes a table named 'Task'. and I used Hibernate
My current web development tool is Spring 3, I've used Hibernate before, I'm actually
I found and have used a closure that temporarily turns hibernate.SQL logging to Trace
I am using Hibernate to map with MySQL I have an entity class in
I have an application that uses hibernate. I did the following: Used List to

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.