• 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: 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
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!