Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
  • Carey Brown
  • Tim Holloway
  • Joe Ess

problem with hibernate, annontation and object  RSS feed

Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I'm trying to insert hibernate in my project but i have a problem with this. it does not show me what I want.
Before insert hibernate, I did not have this problem.

my db contains: id, question, result, id_left_node_children, id_right_node_children.

here my bean without hibernate.

For insert hibernate, i just put annontations @Column on id_node, question, result, id_left/right_node_children and put @transient ont Node left and right. The rest has not changed.

I create a collection on my db with this in my dao

The target is : if you answer "yes", we go to the left node, if you answer "no", we go to the right node with a new question.
For example, if i want a question on the left, my code is

Initially, i have a first question, but if i click on the buton yes or no, i don't have a next question. I don't a error but i have nothing !.
I think, the problem comes in my bean on node left/right and getters setters but why ? without hibernate, i don't have a problem !

Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!