my dog learned polymorphism*
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 Java 8 in Action this week in the Java 8 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**********************



 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hibernate: Problem with View returning list of nulls
 
Similar Threads
Problem in inserting a foreign key
@PrimaryKeyJoinColumn with bidirectional @OneToOne relationship and @Id
How to map a class that has an object that is defined as @Embeddable
Hibernate one-to-many inner join?
PropertyAccessException: IllegalArgumentException occurred calling getter