• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Spring requirement

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 43
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Also have a look on DAO pattern as well.
 
reply
    Bookmark Topic Watch Topic
  • New Topic