Is it Mandatory to map each pojo class variable with table
column in Hibernate? Is there any alternative to skip some
of those? Thanks in advance...

Answers were Sorted based on User's Feedback



Is it Mandatory to map each pojo class variable with table column in Hibernate? Is there any altern..

Answer / simhanijagadeesh

good question...good question...we need all colunns
properties map in pojo.hbm.xml and pojo when and only we
need to create with that table creation.if you are doing
fetching data no need of all variables in pojo and hbm
file.good Question by you.....keep it up...I tested and
found in my real project...I will give you clear info on
this after verifying my project.

Is This Answer Correct ?    0 Yes 0 No

Is it Mandatory to map each pojo class variable with table column in Hibernate? Is there any altern..

Answer / shashi

No,its not mandatory to map each variable in class with table column in hibernate.

you can skip some of the those using trasient keyword from persisting into database

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Java J2EE AllOther Interview Questions

How is hashset maintained in memory by java ?

0 Answers  


whats the relation ship between LDAP and JNDI?

1 Answers  


What is the enumerator of the java collection framework? : java collections

0 Answers  


Difference b/w >> and >>> ?

1 Answers   Adobe, Infosys,


what is the difference between through and throws?

2 Answers   HCL,






how to deploy the web application ?

2 Answers   Accent,


Q1. A. Write note on "The class path Environment Variable". B. Which are different kinds of source code? Q2. A. How to create an interface? B. Why convert an applet to an application? Q3. A. How to use Media tracker Class. B. How to use string tokenizer class. Q4. A. Explain the overview of UDP messaging. B. Difference between SQL Exception class and SQL Warning class. Q5. A. How to create com object in Java? B. Write short notes on "The properties class" Q6. A. When object is created and destroyed? B. Explain the JDB in depth & command line. C. Write short notes on Web Sites.

1 Answers  


Should we create system software ( e.g operating system ) in java ?

0 Answers  


httt method

2 Answers   HCL,


Which of the following declaration is wrong? int i=45; float j = 45.0; double k=45.0;

5 Answers   Adobe,


what is difference between business deligate and session facade ?

2 Answers   Fidelity,


what is jndi?

2 Answers  


Categories