Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Object Relational Mapping and the fly likes Hibernate: Problem with View returning list of nulls Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate: Problem with View returning list of nulls" Watch "Hibernate: Problem with View returning list of nulls" New topic
Author

Hibernate: Problem with View returning list of nulls

Dave Robinson
Greenhorn

Joined: May 11, 2005
Posts: 4
I am having a problem with retrieving values from a view that I created. I have created a mapping file, entity and updated my applicationContext to list the entity in the sessionFactory. My DAO attempts to retrieve all values from the view as a list, but it returns a list of the correct size but all null values. What can be causing this, I have another view and other tables that do not give me this issue. Please advise, is there something that I am missing?

I am using Spring3.0.6 and hibernate 3.6.2

************************hbm.xml***********************


*************************DAO***************************


**********************Entity*****************************


***********Embedded id**********************



 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Hibernate: Problem with View returning list of nulls
 
Similar Threads
How to map a class that has an object that is defined as @Embeddable
Hibernate one-to-many inner join?
@PrimaryKeyJoinColumn with bidirectional @OneToOne relationship and @Id
PropertyAccessException: IllegalArgumentException occurred calling getter
Problem in inserting a foreign key