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 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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 3817

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: 3817

I suggest you first learn how to map different relationships in Hibernate as explained here. Then worry about Spring/Struts integration etc...
 
wood burning stoves
 
subject: Example CRUD Operation on Struts 2, Hibernate(One-to-Many),Spring
 
Similar Threads
Frameworks according to layers
Spring MVC with Hibernate
Which framework to learn
Need some sample/example code for Struts, Spring, Hibernate based working web application
Struts,Spring,Hibernate in the industry.