aspose file tools*
The moose likes Object Relational Mapping and the fly likes How to pass primary key from one class to another class using hibernate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "How to pass primary key from one class to another class using hibernate" Watch "How to pass primary key from one class to another class using hibernate" New topic
Author

How to pass primary key from one class to another class using hibernate

vinod dampuru
Greenhorn

Joined: Apr 16, 2012
Posts: 1
When the class A is called it should update the first 3 fields in database (i.e) PID,NAME,SHORT_NAME when the class B is called SPNAME,SPSHORT_NAME needs to be updated in the same row.......



John Jai
Bartender

Joined: May 31, 2011
Posts: 1776
Welcome to the Ranch
Please UseCodeTags and CarefullyChooseOneForum.

We have a separate forum for ORM - http://www.coderanch.com/forums/f-78/ORM
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to pass primary key from one class to another class using hibernate