Meaningless Drivel is fun!*
The moose likes Object Relational Mapping and the fly likes Returns Null List objects for Composite id mapping 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 "Returns Null List objects for Composite id mapping" Watch "Returns Null List objects for Composite id mapping" New topic
Author

Returns Null List objects for Composite id mapping

sarathc chandras
Greenhorn

Joined: Nov 14, 2013
Posts: 1
Hello.

I am getting list of null objects from the table. Actually the data is there and the size of list getting correctly but will null objects.

Mapping file


Table


Java Code




Error: Getting list of null object with correct size.
size=3
[null,null,null]

What is the problem in the code?


[Thumbnail for error.jpg]

Jasonblabla Wu
Greenhorn

Joined: Apr 19, 2014
Posts: 2
Has this issue been solved yet? I've been sufferring the same issue for days..
Jasonblabla Wu
Greenhorn

Joined: Apr 19, 2014
Posts: 2
Got this resolved, I used .hbm files previously which has been confirmed that these files were not working in JPA2.0 so I created new orm.xml files and it works.
 
 
subject: Returns Null List objects for Composite id mapping
 
Similar Threads
How to persist objects having circular references using Hibernate
Hibernate 4 : org.hibernate.exception.SQLGrammarException: Unknown column 'FOLDER' in 'where clause'
Sorting on a property of an inner object (object within an object)
How do I avoid duplicate inserts in YoutubeFeed table?
Ejb 3.0 Unable to run the program in Weblogic or Glassfish server