• Post Reply Bookmark Topic Watch Topic
  • New Topic

Hibernate types?  RSS feed

 
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: 17309
11
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!