Hi,
I am using criteria query to fetch list of records from database VIEW. I have created the corresponding HBM.xml and POJO files.
OuterView.hbm.xml corresponds to OuterView.java, which contains a composite key of class InnerView.java. OuterView.java contains only one attribute as InnerView and InnerView contains all the column names and their getters and setters.
I am creating criteria on OuterView.java and the query is being fired too. But when I am fetching the returned list, it gives me a list with NULL objects in it. I cannot get the data neither in OuterView nor in InnerView.
Can you please help me out? Is there something that I am missing?
|