Advertisement
Guest User

Untitled

a guest
Sep 8th, 2016
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.31 KB | None | 0 0
  1. <?xml version='1.0' encoding='UTF-8' ?>
  2. <!-- was: <?xml version="1.0" encoding="UTF-8"?> -->
  3. <beans xmlns="http://www.springframework.org/schema/beans"
  4. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  5. xmlns:p="http://www.springframework.org/schema/p"
  6. xmlns:aop="http://www.springframework.org/schema/aop"
  7. xmlns:tx="http://www.springframework.org/schema/tx"
  8. xmlns:mvc="http://www.springframework.org/schema/mvc"
  9. xmlns:context="http://www.springframework.org/schema/context"
  10. xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
  11. http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.0.xsd
  12. http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.0.xsd
  13. http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-4.0.xsd
  14. http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd">
  15.  
  16.  
  17. <bean id="propertyConfigurer"
  18. class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"
  19. p:location="/WEB-INF/jdbc.properties" />
  20.  
  21. <bean id="dataSource"
  22. class="org.springframework.jdbc.datasource.DriverManagerDataSource"
  23. p:driverClassName="${jdbc.driverClassName}"
  24. p:url="${jdbc.url}"
  25. p:username="${jdbc.username}"
  26. p:password="${jdbc.password}" />
  27.  
  28.  
  29. <bean id="sessionFactory" class="org.springframework.orm.hibernate4.LocalSessionFactoryBean">
  30. <property name="dataSource" ref="dataSource" />
  31. <property name="annotatedClasses">
  32.  
  33. <list>
  34. <value>com.pijacaautomobila.model.MarkaVozila</value>
  35. </list>
  36.  
  37. </property>
  38.  
  39. <property name="hibernateProperties">
  40.  
  41. <props>
  42. <prop key="hibernate.dialect">org.hibernate.dialect.HSQLDialect</prop>
  43. <prop key="hibernate.current_session_context_class">thread</prop>
  44. </props>
  45.  
  46. </property>
  47.  
  48. </bean>
  49.  
  50. <bean id="markaVozilaDao" class="com.pijacaautomobila.model.MarkaVozilaDao" />
  51.  
  52. </beans>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement