Tuesday, May 27, 2014

Hibernate Session Interface Methods

Hibernate Session Methods 

  1. Session.get()
  2. session.load()
  3. session.save()
  4. session.update()
  5. session.saveOrUpdate()
  6. session.merge()
  7. session.persist()
  8. session.flush()
  9. session.clear()
  10. session.close()
  11. session.evict()
  12. session.beginTransaction()
  13. session.delete()
  14. session.createQuery()
  15. session.createCriteria()
  16. session.createSQLQuery()

Hibernate hbm.ddl.auto possible values in the spring configuration file:

  1. Validate
  2. Create
  3. Update
  4. create-drop
Hibernate Configuration file for hbm.ddl.auto configuration 





    

        
        org.hsqldb.jdbcDriver
        jdbc:hsqldb:hsql://localhost
        sa
        

        
        1

        
        org.hibernate.dialect.HSQLDialect

        
        thread

        
        org.hibernate.cache.internal.NoCacheProvider

        
        true

               
        
        update

        

    

No comments:

Post a Comment