This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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
 
Similar Threads
Exception "javax.persistence.EntityNotFoundException: Unable to find ParkingSpace with 3
Whats wrong with the code ?
Help me for Joinin two tables.
Exception while deleting a Entity
Eclispe + Hibernate + DB2 version 9