• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate queries

 
khushi jainy
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello all
can i combine .hbm file and .cfg file in one.
can i have more than 1 .cfg like .hbm file.
what is the return type of
new Configuration().configure().sessionFactory();
one more question as all transaction code(jdbc,jta) is written by vendor..can we see that?


Thank You.
 
Reehan Lalkhanwar
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't know why you would want to mix .hbm and .cfg files. Both are for different purpose and so its better to keep them separate.
You can have more than one .cfg file which can be used as:

Return type is: org.hibernate.SessionFactory
Don't know about the last question.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic