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

which book is the best for preparing for SCWCD 1.5

4 Answers   Google,


what is java virtual machine

4 Answers  


What is the Spring2.5 MVC Navigation flow?

1 Answers   IBM,


what is the difference between banking and insurance domain?

2 Answers  


httt method

2 Answers   HCL,






What is an Ioc pattern? There are assemblies in .net for establishing this task, Whats the special in Java /j2ee technologies about IOC

2 Answers  


what is difference between business deligate and session facade ?

2 Answers   Fidelity,


What is the use of the list interface in the java collection? : java collections

0 Answers  


In HashSet duplicates are allowed while adding to the HashSet, but while retreiving the object from HashSet is not shown the duplicate values, WHY ?

2 Answers   Cap Gemini,


What is need of DAO? Write one simple DAO example?

2 Answers   IBM,


what is mean by hasing and maping in java platform and advantage?

0 Answers   CTS,


What are the types of interface used in the java collections? : java collections

0 Answers  


Categories