Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Returns Null List objects for Composite id mapping

 
sarathc chandras
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
error.jpg
[Thumbnail for error.jpg]
 
Jasonblabla Wu
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Has this issue been solved yet? I've been sufferring the same issue for days..
 
Jasonblabla Wu
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic