• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How session is getting in hibernate?

 
mallikarjun dontamsetti
Ranch Hand
Posts: 246
Firefox Browser Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I know seesionfactory,session, transaction, query are interfaces in hibernate. then how are working. because interfaces doesn't have any implemented methods
 
harshvardhan ojha
Ranch Hand
Posts: 157
1
Android Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
but configuration is a class. You are effectively doing this:


And i don't see a problem in that.
 
mallikarjun dontamsetti
Ranch Hand
Posts: 246
Firefox Browser Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

harshvardhan ojha wrote:
In this
will Instantiate a new SessionFactory, using the properties and mappings in this configuration. On that instance we are calling openSession() so how an interface method will be called and return a session object. Is this interface is some thing like marker interface.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic