• Post Reply Bookmark Topic Watch Topic
  • New Topic

problem with hibernate, annontation and object

 
Dubois Geoffrey
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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 !

thank
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
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!