====== Connected with hibernate ====== ===== Hibernate forum links ===== * The ''ehcache.xml'' file location: the problem was raised many times but still is actual: [[http://forum.hibernate.org/viewtopic.php?t=946843|topic 1]], [[http://forum.hibernate.org/viewtopic.php?t=944832|topic 2]], [[http://track.sipfoundry.org/browse/XCF-494|topic 3]], [[https://sourceforge.net/forum/message.php?msg_id=3305407|topic 4]], [[https://sourceforge.net/forum/message.php?msg_id=3284483|topic 5]] * Additional where-clause limitations for '''' and '''' associations: [[http://forum.hibernate.org/viewtopic.php?t=948699|topic 1]], [[http://forum.hibernate.org/viewtopic.php?t=948812|topic 2]] ===== Hibernate questions answered ===== * ''UserType'' example of mapping ''Enum'' to ''int'' is [[https://www.hibernate.org/312.html|here]], ''Enum'' to ''string'' is [[https://www.hibernate.org/272.html|here]]. Hibernate standard class is in ''hibernate-annotations''. Sample of usage: org.mycompany.dao.SemanticType * Loading of lazy entities can be done via ''org.hibernate.Hibernate#initialize(Object)''. * The difference between ''Session.save()'' and ''Session.persist()'' is covered [[https://forum.hibernate.org/viewtopic.php?t=951275#p2325758|here]]. * [[https://forum.hibernate.org/viewtopic.php?f=9&t=971056#p2421672|equals() and hashCode() for PersistentBag and PersistentIdentifierBag]].