aspose file tools*
The moose likes Object Relational Mapping and the fly likes Example CRUD Operation on Struts 2, Hibernate(One-to-Many),Spring Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Example CRUD Operation on Struts 2, Hibernate(One-to-Many),Spring" Watch "Example CRUD Operation on Struts 2, Hibernate(One-to-Many),Spring" New topic
Author

Example CRUD Operation on Struts 2, Hibernate(One-to-Many),Spring

Gowtham Subramaniam
Greenhorn

Joined: Feb 16, 2012
Posts: 10
Hello,
I'm working for Company. I need to work on the Concept of Hibernate Mapping with Struts Integration and Spring for Insertion,Deletion,Updation and Viewing.
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3832

There a loads of examples out there about these on the web. What is the purpose(s) using Struts and Spring together?


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Gowtham Subramaniam
Greenhorn

Joined: Feb 16, 2012
Posts: 10
Lot of Examples are there. But,Explaining only about Hibernate with Simple Java Program. I need to achieve it by transfer data from Struts 2 Forms using on the Concept of Hibernate Mapping(One-to-Many,one-to-one,many-to-many relationships[Unidirectional,bi-directional] ) with Struts Integration and Spring for Insertion,Deletion,Updation and Viewing. I'm facing problem on how to implement,where to insert the tag of <one-to-many> or <many-o-one> in two differnet HBM files. Confused in primary key and Foreign key concepts !! Please send some real time examples
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3832

I suggest you first learn how to map different relationships in Hibernate as explained here. Then worry about Spring/Struts integration etc...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Example CRUD Operation on Struts 2, Hibernate(One-to-Many),Spring