• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Field Mapping and Query..

 
Shridhar. Blr.
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am new to Hibernate, Can anyone explain..

1. Do we need to map all Bean/Table fields in <Insurance>.hbm.xml file?; Can i skip some of the fields??
2. When to use Insurance insurance = (Insurance) it.next();
&&
Object[] row = (Object[]) it.next();

Are these specific to the SQL_QUERY_STRING?

Any help would be highly appreciated..
Thanks in Advance..
Shridhar..
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

1. Do we need to map all Bean/Table fields in <Insurance>.hbm.xml file?; Can i skip some of the fields??

You can skip nullable fields if you don't need to do anyhting with them.

2. When to use Insurance insurance = (Insurance) it.next();
&&
Object[] row = (Object[]) it.next();

What does "it" refer to?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic