daily pastebin goal
69%
SHARE
TWEET

Untitled

a guest Nov 21st, 2017 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.           <entry key="view">
  2.                 <bean class="br.com.dataagil.web.util.ViewScope"/>
  3.             </entry>
  4.         </map>
  5.     </property>
  6.     </bean> -->
  7.    
  8.     <!-- <bean id="UsuarioDAOJPA" class="br.com.fabricadeprogramador.model.dao.UsuarioDAOJPA"/>  -->
  9.  
  10.     <bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager">
  11.         <property name="entityManagerFactory" ref="entityManagerFactory" />
  12.     </bean>
  13.    
  14.    
  15.     <bean id="dataSource" name="dtBancoPrincipal"  class="org.apache.commons.dbcp.BasicDataSource">
  16.         <property name="driverClassName" value="org.postgresql.Driver" />
  17.         <property name="username" value="postgres" />
  18.         <property name="password" value="88951989" />
  19.    
  20.         <property name="url" value="jdbc:postgresql://localhost:5433/DataAgil_ModuloConsultorioMedico" />
  21.         <!-- <property name="url" value="jdbc:postgresql://localhost:5433/bd teresinha" /> -->
  22.        
  23.     </bean>
  24.  
  25.         <bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
  26.         <property name="dataSource" ref="dataSource" />
  27.         <property name="persistenceUnitName" value="DataAgil_ModuloConsultorioMedico" />
  28.         <property name="jpaVendorAdapter">
  29.        
  30.        
  31.             <!--  Aqui estamos especificando qual é o framework que implementa o JPA -->
  32.    
  33.           <bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter">
  34.                 <property name="showSql" value="true" /> <!-- Mostrar o SQL gerado no Console -->
  35.                 <property name="databasePlatform" value="org.hibernate.dialect.PostgreSQLDialect" /> <!-- Dialeto do Banco -->
  36.                 <property name="generateDdl" value="true"/> <!--  Construa as tabelas no banco automaticamente -->
  37.                        
  38.            </bean>
  39.            
  40.            
  41.         </property>
  42.     </bean>
RAW Paste Data
Top