Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

It is strange, why getId () returns null?

 
Jeremiah Dobson
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello!
Has started studying hibernate 3.2.5.
Has collided here with such problem: can not receive ID object though other fields can read through.





DataBase: Firebird 1.5.3
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK Eric, are you saying that the first line reports null and the very next line is shows a value. so

c.getId() //returns null
c.getId() //returns a value

one right after the other?

Are you sure, is there any code or more that is missing?

Mark
 
Jeremiah Dobson
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Values are stored in the table:







 
Jeremiah Dobson
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
About my god, I have forgotten to specify a name
Solve a problem!




Thanks Mark for desire to help!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic