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
Register / Login


JavaRanch » Java Forums » Databases » Object Relational Mapping
Reply 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: 1778
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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How to pass primary key from one class to another class using hibernate
 
Similar Threads
Whats wrong with the code ?
Eclispe + Hibernate + DB2 version 9
Exception while deleting a Entity
Exception "javax.persistence.EntityNotFoundException: Unable to find ParkingSpace with 3
Help me for Joinin two tables.