Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate types?

 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys,

The following is from Beginning Hibernate, that says,

Hibernate types fall into three broad categories: entities, components, and values.

I understand Entities, but what are components and values?
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Components are composite values, so things like User to Address which while in the database might be in the same table as the User information, but in the Java world you want to use composition and create a User object and an Address Object.

Values are the built in value types, like String, int.

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic