• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Which is the Best practice to follow in Hibernate Mapping file...!

 
Vijay Gadde
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was bit confused about this type declaration in Hibernate Mapping file.

Can some suggest me which is best practice, would we need to explicitly declare the type attribute for each of the properties in our Hibernate mapping file.. which one is best

Which one better to follow.

Thanks in advance, Vijay Gadde
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd always be more rather than less prescriptive in my mapping file. You leave less to the vagueries of different dialects and the like.
 
Vijay Gadde
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Paul, I am sorry to ask on the same..would you suggest that we need to more specific on properties file rather leaving more to Hibernate.

Thanks for that message..!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic