• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

are these 2 same or not

 
Samanthi perera
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i need to know are these two codes are same or not.
If same how?
I mean in first code it adds a User class,but in second not?




 
Christian Dillinger
Ranch Hand
Posts: 200
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think the other guy is confusing you...
You can add annotated classes programmatically as in your first sample. The solution we had yesterday uses the Hibernate mechanism, that there is a file named hibernate.cfg.xml where either the mapping files or the annotated classes are listed. Thats sample 2. As you have seen yesterday it worked.
 
Samanthi perera
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok.
thanks.
I got your point.
anyway i think if we use both programmer one is wins.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic