aspose file tools*
The moose likes Object Relational Mapping and the fly likes Navigation from valuetype to entitytype is possible and vice-versa is not possible ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Navigation from valuetype to entitytype is possible and vice-versa is not possible ? " Watch "Navigation from valuetype to entitytype is possible and vice-versa is not possible ? " New topic
Author

Navigation from valuetype to entitytype is possible and vice-versa is not possible ?

Sagar Shroff
Ranch Hand

Joined: Jun 07, 2011
Posts: 208

Hello all ranchers , as i was reading Java Persistence with Hibernate in Chapter : Hibernate Type System , i came across topic which was discussing entity and value types.
The topic mentioned that navigation from value type to entity type is possible but vice-versa is not possible. I took an example of a User(EntityType) and Address(ValueType),
so a User entity has an Address. So according to this example i can in fact navigate from a user to its address which conflict with the above statement. Can someone please help me
in understanding this topic by giving me a small example ? Will be really appreciated.

Regards,
Shroff.

OCJP-90%,OCPWCD-95%
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Navigation from valuetype to entitytype is possible and vice-versa is not possible ?