• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring requirement

 
Archana Katakam
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

hello guys!

in an spring application , we are using only three classes like bean class,action class and controller(here saving object).
my requirement is i need to get particular value from the form and get that value related record from database.
so for that requirement i nees to use select query with where condition to retrieve records.

here my problem is i am unable to understand that in which class i need to write this hibernate select query logic and perform .
in controller class i am able to save total object but unable do my requirement.
i tried all possibilities please give me clear idea about this........

i am new to spring ,may i am a simple question but it is really very important for me......

please suggest me ad if any sample program satisfies the above requirement pl attach.

regards
Archana
 
Ashwini Kashyap
Ranch Hand
Posts: 90
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To get started, I think you should first go through as to what is MVC architecture and then you can proceed further.

To integrate spring with hibernate, you may refer here.

Thanks,
Ashwini Kashyap | www.infocepts.com
 
Rajitha Gunawardhane
Ranch Hand
Posts: 32
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also have a look on DAO pattern as well.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic