How can i access a varible defined inside a method by using reflection?
I have to create criteria in hibenate. Database is attribute based database. Let's talk about a movie. A movie can have many language and many genre. e.g.
Movieid property value
1 Language Hindi
1 Language English
1 genre action
2 genre comedy
let's there is thousand record of differnt movie. user select a set of genre(action) and language(hindi, english) to filter the result. Now, i have to create criteria in this order : expression = (property= english and genre = action) or (property= hindi and genre = action)
For the implementation, i have to lookup into a local varible defined inside a for loop condition.