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.