wood burning stoves 2.0*
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
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