Andrew McDonough

Please note: This page is imported from my wiki, which hasn't been updated in over 10 years. Some of the formatting was lost during the import. I'll try to get around to fixing it someday.

Hibernate

.hbm.xml

hibernate.cfg.xml

Contains general hibernate configuration

Example:

org.hsqldb.jdbcDriver jdbc:hsqldb:data/test sa net.sf.hibernate.dialect.HSQLDialect true net.sf.hibernate.transaction.JDBCTransactionFactory net.sf.hibernate.cache.HashtableCacheProvider update
  • Keep the id field private
  • Always use object rather than primitives for the id, i.e. Long rather than long

http://www.systemmobile.com/articles/IntroductionToHibernate.html http://www.allapplabs.com/hibernate/hibernatequerylanguage.htm

http://wiki.apache.org/cocoon/CocoonAndHibernateTutorial


Andrew McDonough

Andrew McDonough is a consultant CTO and software developer, currently based between Berlin and London.

Follow Andrew on Twitter or Connect on LinkedIn