• 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 ...
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

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 !

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!