Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>You can do some like this in application context.xml file to scan all annotation classes - </p> <pre><code>&lt;bean id="sessionFactory" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean"&gt; &lt;property name="dataSource" ref="dataSource" /&gt; &lt;property name="lobHandler" ref="lobHandler"/&gt; &lt;property name="packagesToScan"&gt; &lt;list&gt; &lt;value&gt;com.idc.scd.domain&lt;/value&gt; &lt;value&gt;com.idc.scd.domain.dropdown&lt;/value&gt; &lt;value&gt;com.idc.scd.domain.external&lt;/value&gt; &lt;value&gt;com.idc.scd.domain.pk&lt;/value&gt; &lt;/list&gt; &lt;/property&gt; &lt;property name="hibernateProperties"&gt; &lt;props&gt; &lt;prop key="hibernate.dialect"&gt;org.hibernate.dialect.Oracle10gDialect&lt;/prop&gt; &lt;prop key="hibernate.show_sql"&gt;${hibernate.show_sql}&lt;/prop&gt; &lt;prop key="hibernate.format_sql"&gt;${hibernate.format_sql}&lt;/prop&gt; &lt;prop key="hibernate.use_sql_comments"&gt;${hibernate.use_sql_comments}&lt;/prop&gt; &lt;prop key="hbm2ddl.auto"&gt;validate&lt;/prop&gt; &lt;prop key="hibernate.cache.use_query_cache"&gt;true&lt;/prop&gt; &lt;prop key="hibernate.connection.release_mode"&gt;after_statement&lt;/prop&gt; &lt;prop key="hibernate.cache.provider_class"&gt;net.sf.ehcache.hibernate.EhCacheProvider&lt;/prop&gt; &lt;prop key="hibernate.cache.use_second_level_cache"&gt;${hibernate.cache.use_second_level_cache}&lt;/prop&gt; &lt;prop key="hibernate.cache.use_structured_entries"&gt;${hibernate.cache.use_structured_entries}&lt;/prop&gt; &lt;prop key="hibernate.jdbc.fetch_size"&gt;${hibernate.jdbc.fetch_size}&lt;/prop&gt; &lt;/props&gt; &lt;/property&gt; &lt;/bean&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload