Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Hibernate not storing object

 
laura mccord
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I can't get my object stored in the database. I pass my object to the method and I placed some print statements and the object is not empty.

I configured hibernate to show the sql and I see after it checks the nextval in the hibernate_sequence nothing happens.

Here is the method:




This is returned from the console:

Hibernate:
select
hibernate_sequence.nextval
from
dual
Exit Status : FAILED

Any suggestions?

Thanks
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!