java - hibernate 4 - sessionFactory.addPackage - configuration file analogue? -


I think hibernate 3 was the key to a property hibernate.packagesToScan
Set a session code at the factory level at hibernate.cfg.xml .
Is this key changed to Hibernate 4 and if so, what is its related key?

I am using final version 4.3.8.

"post-text" itemprop = "text">

In the hibernate properties, you should:

  & lt; Property Name = "Hibernate.archive.autodetection" Value = "Class, HBM" />  

In perseverance. Xml should:

  & lt; Excluded-unlisted-sections & gt; Wrong & lt; / Excluded-unlisted-sections & gt;  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -