{"id":294,"date":"2014-10-20T08:22:21","date_gmt":"2014-10-20T08:22:21","guid":{"rendered":"http:\/\/adrhc.go.ro\/wordpress\/?p=294"},"modified":"2014-10-20T08:25:11","modified_gmt":"2014-10-20T08:25:11","slug":"hibernate-4-3-5-spring-4-0-5","status":"publish","type":"post","link":"https:\/\/adrhc.go.ro\/blog\/hibernate-4-3-5-spring-4-0-5\/","title":{"rendered":"Hibernate 4.3.5 + Spring 4.0.5"},"content":{"rendered":"<pre class=\"brush:xml\">\r\n\t&lt;bean id=\"sessionFactory\" lazy-init=\"true\"\r\n\t      class=\"org.springframework.orm.hibernate4.LocalSessionFactoryBean\">\r\n\t\t&lt;property name=\"dataSource\" ref=\"dataSource\"\/>\r\n\t\t&lt;!--&lt;property name=\"mappingLocations\">-->\r\n\t\t\t&lt;!--&lt;list>-->\r\n\t\t\t\t&lt;!--&lt;value>classpath:\/hibernate\/**\/*.hbm.xml&lt;\/value>-->\r\n\t\t\t&lt;!--&lt;\/list>-->\r\n\t\t&lt;!--&lt;\/property>-->\r\n\t\t&lt;property name=\"packagesToScan\" value=\"image.exifweb.persistence\"\/>\r\n\t\t&lt;property name=\"hibernateProperties\">\r\n\t\t\t&lt;props>\r\n\t\t\t\t&lt;prop key=\"hibernate.dialect\">org.hibernate.dialect.MySQL5InnoDBDialect&lt;\/prop>\r\n\t\t\t\t&lt;prop key=\"hibernate.jdbc.batch_size\">20&lt;\/prop>\r\n\t\t\t\t&lt;prop key=\"hibernate.show_sql\">false&lt;\/prop>\r\n\t\t\t\t&lt;prop key=\"hibernate.format_sql\">true&lt;\/prop>\r\n\t\t\t\t&lt;prop key=\"hibernate.validator.autoregister_listeners\">false&lt;\/prop>\r\n\t\t\t\t&lt;!--&lt;prop key=\"hibernate.hbm2ddl.auto\">update&lt;\/prop>-->\r\n\t\t\t\t&lt;!--\r\n\t\t\t\t&lt;prop key=\"hibernate.id.new_generator_mappings\">true&lt;\/prop>\r\n\t\t\t\t&lt;prop key=\"hibernate.current_session_context_class\">jta&lt;\/prop> -->\r\n\t\t\t\t&lt;!--&lt;prop key=\"javax.persistence.validation.mode\">&lt;\/prop>-->\r\n\t\t\t&lt;\/props>\r\n\t\t&lt;\/property>\r\n\t&lt;\/bean>\r\n\r\n\t&lt;!-- Transaction manager for a single Hibernate SessionFactory (alternative to JTA) -->\r\n\t&lt;bean id=\"transactionManager\" name=\"transactionManager\"\r\n\t      class=\"org.springframework.orm.hibernate4.HibernateTransactionManager\">\r\n\t\t&lt;property name=\"sessionFactory\" ref=\"sessionFactory\"\/>\r\n\t&lt;\/bean>\r\n\r\n\t&lt;tx:annotation-driven mode=\"aspectj\"\/>\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>&lt;bean id=&#8221;sessionFactory&#8221; lazy-init=&#8221;true&#8221; class=&#8221;org.springframework.orm.hibernate4.LocalSessionFactoryBean&#8221;> &lt;property name=&#8221;dataSource&#8221; ref=&#8221;dataSource&#8221;\/> &lt;!&#8211;&lt;property name=&#8221;mappingLocations&#8221;>&#8211;> &lt;!&#8211;&lt;list>&#8211;> &lt;!&#8211;&lt;value>classpath:\/hibernate\/**\/*.hbm.xml&lt;\/value>&#8211;> &lt;!&#8211;&lt;\/list>&#8211;> &lt;!&#8211;&lt;\/property>&#8211;> &lt;property name=&#8221;packagesToScan&#8221; value=&#8221;image.exifweb.persistence&#8221;\/> &lt;property name=&#8221;hibernateProperties&#8221;> &lt;props> &lt;prop key=&#8221;hibernate.dialect&#8221;>org.hibernate.dialect.MySQL5InnoDBDialect&lt;\/prop> &lt;prop key=&#8221;hibernate.jdbc.batch_size&#8221;>20&lt;\/prop> &lt;prop key=&#8221;hibernate.show_sql&#8221;>false&lt;\/prop> &lt;prop key=&#8221;hibernate.format_sql&#8221;>true&lt;\/prop> &lt;prop key=&#8221;hibernate.validator.autoregister_listeners&#8221;>false&lt;\/prop> &lt;!&#8211;&lt;prop key=&#8221;hibernate.hbm2ddl.auto&#8221;>update&lt;\/prop>&#8211;> &lt;!&#8211; &lt;prop key=&#8221;hibernate.id.new_generator_mappings&#8221;>true&lt;\/prop> &lt;prop key=&#8221;hibernate.current_session_context_class&#8221;>jta&lt;\/prop> &#8211;> &lt;!&#8211;&lt;prop key=&#8221;javax.persistence.validation.mode&#8221;>&lt;\/prop>&#8211;> &lt;\/props> [&hellip;]<\/p>\n<div class=\"link-more\"><a href=\"https:\/\/adrhc.go.ro\/blog\/hibernate-4-3-5-spring-4-0-5\/#more-294\" class=\"more-link\">Continue reading &#10142; <span class=\"screen-reader-text\">Hibernate 4.3.5 + Spring 4.0.5<\/span><\/a><\/div>","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-294","post","type-post","status-publish","format-standard","hentry","category-programming"],"_links":{"self":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts\/294","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/comments?post=294"}],"version-history":[{"count":0,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts\/294\/revisions"}],"wp:attachment":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/media?parent=294"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/categories?post=294"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/tags?post=294"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}