PDA

View Full Version : Maintaining State of the Object



ribeirete
Oct 27th, 2004, 08:55 PM
Hi,

I am developing an application web using Spring, Hibernate and Struts the architecture is based in services that are instanciados directly for Spring. I noticed that the state of my objects is maintained even without me to define that, as if I had using EJB of the type statefull, proém I don't want to maintain the state of the object where I define that ?

Thank you,

Fábio Ribereite

my applicationContext.xml


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
"http://www.springframework.org/dtd/spring-beans.dtd">

<beans>
<!-- ##### DECLARACAO DO DATA SOURCE ##### -->
<bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerD ataSource">
<property name="driverClassName">
<value>com.inet.tds.TdsDriver</value>
</property>
<property name="url">
<value>jdbc:inetdae:floripa:1433?database=sansys</value>
</property>
<property name="username">
<value>sa</value>
</property>
<property name="password">
<value>jtech</value>
</property>
</bean>

<!-- ##### DECLARACAO DO HIBERNATE FACTORY ##### -->
<bean id="sessionFactory" class="org.springframework.orm.hibernate.LocalSessionFact oryBean">
<property name="dataSource">
<ref local="dataSource"/>
</property>
<property name="mappingResources">
<list>
<value>br/com/sansys/infraestrutura/dominio/sansysArrecadacao.hbm.xml</value>
<value>br/com/sansys/infraestrutura/dominio/sansysCadastros.hbm.xml</value>
<value>br/com/sansys/infraestrutura/dominio/sansysFaturamento.hbm.xml</value>
<value>br/com/sansys/infraestrutura/dominio/sansysInfra.hbm.xml</value>
<value>br/com/sansys/infraestrutura/dominio/sansysOperacional.hbm.xml</value>
<value>br/com/sansys/infraestrutura/dominio/sansysSeguranca.hbm.xml</value>
<value>br/com/sansys/infraestrutura/dominio/sansysTabelas.hbm.xml</value>
</list>
</property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">net.sf.hibernate.dialect.SQLServerDialect</prop>
<prop key="hibernate.show_sql">false</prop>
</props>
</property>
</bean>

<!-- ##### DECLARACAO DO CONTROLE TRANSACIONAL ##### -->
<bean id="transactionManager"
class="org.springframework.orm.hibernate.HibernateTransac tionManager">
<property name="sessionFactory">
<ref local="sessionFactory"/>
</property>
</bean>

<!-- ##### DECLARACAO DE SERVICOS ##### -->
<!-- ##### MODULO TABELAS ##### -->

<!-- Manter Endereço Cliente -->
<bean id="servicoManterEnderecoCliente" class="org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean">
<property name="transactionManager">
<ref local="transactionManager"/>
</property>
<property name="preInterceptors">
<list>
<ref local="sansysInterceptador"/>
</list>
</property>
<property name="target">
<ref local="servicoImplManterEnderecoCliente"/>
</property>
<property name="transactionAttributes">
<props>
<prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
</props>
</property>
</bean>
<bean id="servicoImplManterEnderecoCliente" class="br.com.sansys.cadastros.servico.ManterEnderecoClie nteServicoImpl">

<property name="activeRecordDAO">
<ref local="activeRecordDAO"/>
</property>
<property name="manterClienteDAO">
<ref local="manterClienteDAO"/>
</property>

</bean>

<!-- Manter Cliente -->
<bean id="servicoManterCliente" class="org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean">
<property name="transactionManager">
<ref local="transactionManager"/>
</property>
<property name="preInterceptors">
<list>
<ref local="sansysInterceptador"/>
</list>
</property>
<property name="target">
<ref local="servicoImplManterCliente"/>
</property>
<property name="transactionAttributes">
<props>
<prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
</props>
</property>
</bean>
<bean id="servicoImplManterCliente" class="br.com.sansys.cadastros.servico.ManterClienteServi coImpl">
<property name="gerenciadorChaves">
<ref local="gerenciadorChaves"/>
</property>
<property name="activeRecordDAO">
<ref local="activeRecordDAO"/>
</property>
</bean>

<!-- Manter Usuario -->
<bean id="servicoSegurancaUsuario" class="org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean">
<property name="transactionManager">
<ref local="transactionManager"/>
</property>
<property name="preInterceptors">
<list>
<ref local="sansysInterceptador"/>
</list>
</property>
<property name="target">
<ref local="servicoImplSegurancaUsuario"/>
</property>
<property name="transactionAttributes">
<props>
<prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
</props>
</property>
</bean>
<bean id="servicoImplSegurancaUsuario" class="br.com.sansys.seguranca.servico.ManterUsuarioServi coImpl">
<property name="activeRecordDAO">
<ref local="activeRecordDAO"/>
</property>
<property name="manterUsuarioDAO">
<ref local="manterUsuarioDAO"/>
</property>
</bean>

<!-- Manter Perfil Acesso -->
<bean id="servicoSegurancaPerfilAcesso" class="org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean">
<property name="transactionManager">
<ref local="transactionManager"/>
</property>
<property name="preInterceptors">
<list>
<ref local="sansysInterceptador"/>
</list>
</property>
<property name="target">
<ref local="servicoImplSegurancaPerfilAcesso"/>
</property>
<property name="transactionAttributes">
<props>
<prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
</props>
</property>
</bean>
<bean id="servicoImplSegurancaPerfilAcesso" class="br.com.sansys.seguranca.servico.ManterPerfilAcesso ServicoImpl">
<property name="manterPerfilAcessoDAO">
<ref local="manterPerfilAcessoDAO"/>
</property>
</bean>

<!-- Logar Usuario -->
<bean id="logarServico" class="org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean">
<property name="transactionManager">
<ref local="transactionManager"/>
</property>
<property name="preInterceptors">
<list>
<ref local="sansysInterceptador"/>
</list>
</property>
<property name="target">
<ref local="logarServicoImpl"/>
</property>
<property name="transactionAttributes">
<props>
<prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
</props>
</property>
</bean>
<bean id="logarServicoImpl" class="br.com.sansys.seguranca.servico.LogarServicoImpl">
<property name="carregarContextoDAO"><ref local="carregarContextoDAO"/></property>
<property name="manterUsuarioDAO"><ref local="manterUsuarioDAO"/></property>
<property name="activeRecordDAO"><ref local="activeRecordDAO"/></property>
</bean>

<!-- Delegar Perfil Acesso -->
<bean id="servicoDelegarPerfilAcesso" class="org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean">
<property name="transactionManager">
<ref local="transactionManager"/>
</property>
<property name="preInterceptors">
<list>
<ref local="sansysInterceptador"/>
</list>
</property>
<property name="target">
<ref local="delegarFuncionalidadePerfilAcessoServico"/>
</property>
<property name="transactionAttributes">
<props>
<prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
</props>
</property>
</bean>
<bean id="delegarFuncionalidadePerfilAcessoServico" class="br.com.sansys.seguranca.servico.DelegarFuncionalid adePerfilAcessoServicoImpl">
<property name="manterPerfilAcessoDAO">
<ref local="manterPerfilAcessoDAO"/>
</property>
<property name="manterModuloDAO">
<ref local="manterModuloDAO"/>
</property>
<property name="manterFuncionalidadePerfilDAO">
<ref local="manterFuncionalidadePerfilDAO"/>
</property>
<property name="manterAcaoFuncionalidadeDAO">
<ref local="manterAcaoFuncionalidadeDAO"/>
</property>
<property name="manterPermissaoDAO">
<ref local="manterPermissaoDAO"/>
</property>
</bean>

<!--Componente de pesquisa -->
<bean id="componentePesquisaServico" class="org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean">
<property name="transactionManager">
<ref local="transactionManager"/>
</property>
<property name="preInterceptors">
<list>
<ref local="sansysInterceptador"/>
</list>
</property>
<property name="target"><ref local="componenteImplServicoPesquisa"/></property>
<property name="transactionAttributes">
<props>
<prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
</props>
</property>
</bean>
<bean id="componenteImplServicoPesquisa" class="br.com.sansys.infraestrutura.servico.ComponentePes quisaServicoImpl">
<property name="efetuarPesquisaDAO"><ref local="efetuarPesquisaDAO"/>
</property>
</bean>

<!-- Manter Municipio -->
<bean id="servicoManterMunicipio" class="org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean">
<property name="transactionManager">
<ref local="transactionManager"/>
</property>
<property name="preInterceptors">
<list>
<ref local="sansysInterceptador"/>
</list>
</property>
<property name="target">
<ref local="servicoImplManterMunicipio"/>
</property>
<property name="transactionAttributes">
<props>
<prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
</props>
</property>
</bean>
<bean id="servicoImplManterMunicipio" class="br.com.sansys.tabelas.servico.ManterMunicipioServi coImpl">
<property name="manterMunicipioDAO">
<ref local="manterMunicipioDAO"/>
</property>
<property name="manterAtivoDAO">
<ref local="manterAtivoDAO"/>
</property>
<property name="manterUfDAO">
<ref local="manterUfDAO"/>
</property>
<property name="gerenciadorChaves">
<ref local="gerenciadorChaves"/>
</property>
</bean>

<!-- Manter Tabelas Basicas -->
<bean id="servicoManterTabelasBasicas" class="org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean">
<property name="transactionManager">
<ref local="transactionManager"/>
</property>
<property name="preInterceptors">
<list>
<ref local="sansysInterceptador"/>
</list>
</property>
<property name="target">
<ref local="servicoImplManterTabelasBasicas"/>
</property>
<property name="transactionAttributes">
<props>
<prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
</props>
</property>
</bean>
<bean id="servicoImplManterTabelasBasicas" class="br.com.sansys.tabelas.servico.ManterTabelasBasicas ServicoImpl">
<property name="manterTabelasBasicasDAO">
<ref local="manterTabelasBasicasDAO"/>
</property>
<property name="tabelaBasicaDAO">
<ref local="tabelaBasicaDAO"/>
</property>
<property name="gerenciadorChaves">
<ref local="gerenciadorChaves"/>
</property>
</bean>

<!-- Manter Marca Hidrometro -->
<bean id="servicoManterMarcaHidrometro" class="org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean">
<property name="transactionManager">
<ref local="transactionManager"/>
</property>
<property name="preInterceptors">
<list>
<ref local="sansysInterceptador"/>
</list>
</property>
<property name="target">
<ref local="servicoImplMarcaHidrometro"/>
</property>
<property name="transactionAttributes">
<props>
<prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
</props>
</property>
</bean>
<bean id="servicoImplMarcaHidrometro" class="br.com.sansys.tabelas.servico.ManterMarcaHidrometr oServicoImpl">
<property name="activeRecordDAO">
<ref local="activeRecordDAO"/>
</property>
<property name="manterAtivoDAO">
<ref local="manterAtivoDAO"/>
</property>
</bean>

<!-- Manter Bairro -->
<bean id="servicoManterBairro" class="org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean">
<property name="transactionManager">
<ref local="transactionManager"/>
</property>
<property name="preInterceptors">
<list>
<ref local="sansysInterceptador"/>
</list>
</property>
<property name="target">
<ref local="servicoImplManterBairro"/>
</property>
<property name="transactionAttributes">
<props>
<prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
</props>
</property>
</bean>
<bean id="servicoImplManterBairro" class="br.com.sansys.tabelas.servico.ManterBairroServicoI mpl">
<property name="manterMunicipioDAO">
<ref local="manterMunicipioDAO"/>
</property>
<property name="activeRecordDAO">
<ref local="activeRecordDAO"/>
</property>
<property name="gerenciadorChaves">
<ref local="gerenciadorChaves"/>
</property>
</bean>

<!-- Manter Agencia -->
<bean id="servicoManterAgencia" class="org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean">
<property name="transactionManager">
<ref local="transactionManager"/>
</property>
<property name="preInterceptors">
<list>
<ref local="sansysInterceptador"/>
</list>
</property>
<property name="target">
<ref local="servicoImplManterAgencia"/>
</property>
<property name="transactionAttributes">
<props>
<prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
</props>
</property>
</bean>
<bean id="servicoImplManterAgencia" class="br.com.sansys.tabelas.servico.ManterAgenciaServico Impl">
<property name="manterAgenciaDAO">
<ref local="manterAgenciaDAO"/>
</property>
<property name="activeRecordDAO">
<ref local="activeRecordDAO"/>
</property>
</bean>


<!-- Manter Agente Arrecadador -->
<bean id="servicoManterAgenteArrecadador" class="org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean">
<property name="transactionManager">
<ref local="transactionManager"/>
</property>
<property name="preInterceptors">
<list>
<ref local="sansysInterceptador"/>
</list>
</property>
<property name="target">
<ref local="servicoImplManterAgenteArrecadador"/>
</property>
<property name="transactionAttributes">
<props>
<prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
</props>
</property>
</bean>
<bean id="servicoImplManterAgenteArrecadador" class="br.com.sansys.tabelas.servico.ManterAgenteArrecada dorServicoImpl">

<property name="activeRecordDAO">
<ref local="activeRecordDAO"/>
</property>
</bean>

<!-- Manter Logradouro -->
<bean id="servicoManterLogradouro" class="org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean">
<property name="transactionManager">
<ref local="transactionManager"/>
</property>
<property name="preInterceptors">
<list>
<ref local="sansysInterceptador"/>
</list>
</property>
<property name="target">
<ref local="servicoImplManterLogradouro"/>
</property>
<property name="transactionAttributes">
<props>
<prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
</props>
</property>
</bean>
<bean id="servicoImplManterLogradouro" class="br.com.sansys.tabelas.servico.ManterLogradouroServ icoImpl">
<property name="manterAtivoDAO">
<ref local="manterAtivoDAO"/>
</property>
<property name="activeRecordDAO">
<ref local="activeRecordDAO"/>
</property>
<property name="manterBairroDAO">
<ref local="manterBairroDAO"/>
</property>
<property name="manterMunicipioDAO">
<ref local="manterMunicipioDAO"/>
</property>
<property name="gerenciadorChaves">
<ref local="gerenciadorChaves"/>
</property>
</bean>

<!-- Manter Faixa Leitura Esperada -->
<bean id="servicoManterFaixaLeituraEsperada" class="org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean">
<property name="transactionManager">
<ref local="transactionManager"/>
</property>
<property name="preInterceptors">
<list>
<ref local="sansysInterceptador"/>
</list>
</property>
<property name="target">
<ref local="servicoImplManterFaixaLeituraEsperada"/>
</property>
<property name="transactionAttributes">
<props>
<prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
</props>
</property>
</bean>

<bean id="servicoImplManterFaixaLeituraEsperada" class="br.com.sansys.tabelas.servico.ManterFaixaLeituraEs peradaServicoImpl">
<property name="activeRecordDAO">
<ref local="activeRecordDAO"/>
</property>
</bean>

<!-- Manter Faixa Logradouro -->
<bean id="servicoManterFaixaLogradouro" class="org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean">
<property name="transactionManager">
<ref local="transactionManager"/>
</property>
<property name="preInterceptors">
<list>
<ref local="sansysInterceptador"/>
</list>
</property>
<property name="target">
<ref local="servicoImplManterFaixaLogradouro"/>
</property>
<property name="transactionAttributes">
<props>
<prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
</props>
</property>
</bean>
<bean id="servicoImplManterFaixaLogradouro" class="br.com.sansys.tabelas.servico.ManterFaixaLogradour oServicoImpl">
<property name="manterAtivoDAO">
<ref local="manterAtivoDAO"/>
</property>
<property name="activeRecordDAO">
<ref local="activeRecordDAO"/>
</property>
<property name="manterBairroDAO">
<ref local="manterBairroDAO"/>
</property>
<property name="manterLogradouroDAO">
<ref local="manterLogradouroDAO"/>
</property>
<property name="manterMunicipioDAO">
<ref local="manterMunicipioDAO"/>
</property>
</bean>

<!-- Manter Capacidade Hidrometro -->
<bean id="servicoManterCapacidadeHidrometro" class="org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean">
<property name="transactionManager">
<ref local="transactionManager"/>
</property>
<property name="preInterceptors">
<list>
<ref local="sansysInterceptador"/>
</list>
</property>
<property name="target">
<ref local="servicoImplManterCapacidadeHidrometro"/>
</property>
<property name="transactionAttributes">
<props>
<prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
</props>
</property>
</bean>
<bean id="servicoImplManterCapacidadeHidrometro" class="br.com.sansys.tabelas.servico.ManterCapacidadeHidr ometroServicoImpl">
<property name="activeRecordDAO">
<ref local="activeRecordDAO"/>
</property>
<property name="manterCapacidadeHidrometroDAO">
<ref local="manterCapacidadeHidrometroDAO"/>
</property>
</bean>

<!-- Manter Titulo Patente -->
<bean id="servicoManterTituloPatente" class="org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean">
<property name="transactionManager">
<ref local="transactionManager"/>
</property>
<property name="preInterceptors">
<list>
<ref local="sansysInterceptador"/>
</list>
</property>
<property name="target">
<ref local="servicoImplManterTituloPatente"/>
</property>
<property name="transactionAttributes">
<props>
<prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
</props>
</property>
</bean>
<bean id="servicoImplManterTituloPatente" class="br.com.sansys.tabelas.servico.ManterTituloPatenteS ervicoImpl">
<property name="activeRecordDAO">
<ref local="activeRecordDAO"/>
</property>
<property name="gerenciadorChaves">
<ref local="gerenciadorChaves"/>
</property>
</bean>

<!-- Manter Modelo Hidrometro -->
<bean id="servicoManterModeloHidrometro" class="org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean">
<property name="transactionManager">
<ref local="transactionManager"/>
</property>
<property name="preInterceptors">
<list>
<ref local="sansysInterceptador"/>
</list>
</property>
<property name="target">
<ref local="servicoImplManterModeloHidrometro"/>
</property>
<property name="transactionAttributes">
<props>
<prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
</props>
</property>
</bean>
<bean id="servicoImplManterModeloHidrometro" class="br.com.sansys.tabelas.servico.ManterModeloHidromet roServicoImpl">
<property name="activeRecordDAO">
<ref local="activeRecordDAO"/>
</property>
<property name="gerenciadorChaves">
<ref local="gerenciadorChaves"/>
</property>
<property name="manterModeloHidrometroDAO">
<ref local="manterModeloHidrometroDAO"/>
</property>
</bean>

<!-- Manter Tipo Logradouro -->
<bean id="servicoManterTipoLogradouro" class="org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean">
<property name="transactionManager">
<ref local="transactionManager"/>
</property>
<property name="preInterceptors">
<list>
<ref local="sansysInterceptador"/>
</list>
</property>
<property name="target">
<ref local="servicoImplManterTipoLogradouro"/>
</property>
<property name="transactionAttributes">
<props>
<prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
</props>
</property>
</bean>
<bean id="servicoImplManterTipoLogradouro" class="br.com.sansys.tabelas.servico.ManterTipoLogradouro ServicoImpl">
<property name="activeRecordDAO">
<ref local="activeRecordDAO"/>
</property>
<property name="gerenciadorChaves">
<ref local="gerenciadorChaves"/>
</property>
</bean>

<!-- Manter Servico Definicao -->
<bean id="servicoManterServicoDefinicao" class="org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean">
<property name="transactionManager">
<ref local="transactionManager"/>
</property>
<property name="preInterceptors">
<list>
<ref local="sansysInterceptador"/>
</list>
</property>
<property name="target">
<ref local="servicoImplManterServicoDefinicao"/>
</property>
<property name="transactionAttributes">
<props>
<prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
</props>
</property>
</bean>
<bean id="servicoImplManterServicoDefinicao" class="br.com.sansys.tabelas.servico.ManterServicoDefinic aoServicoImpl">
<property name="activeRecordDAO">
<ref local="activeRecordDAO"/>
</property>
</bean>

<!-- Manter Classe Servico -->
<bean id="servicoManterClasseServico" class="org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean">
<property name="transactionManager">
<ref local="transactionManager"/>
</property>
<property name="preInterceptors">
<list>
<ref local="sansysInterceptador"/>
</list>
</property>
<property name="target">
<ref local="servicoImplManterClasseServico"/>
</property>
<property name="transactionAttributes">
<props>
<prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
</props>
</property>
</bean>
<bean id="servicoImplManterClasseServico" class="br.com.sansys.tabelas.servico.ManterClasseServicoS ervicoImpl">
<property name="gerenciadorChaves">
<ref local="gerenciadorChaves"/>
</property>
<property name="activeRecordDAO">
<ref local="activeRecordDAO"/>
</property>
</bean>

<!-- Manter Tomadas -->
<bean id="servicoManterTomada" class="org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean">
<property name="transactionManager">
<ref local="transactionManager"/>
</property>
<property name="preInterceptors">
<list>
<ref local="sansysInterceptador"/>
</list>
</property>
<property name="target">
<ref local="servicoImplManterTomada"/>
</property>
<property name="transactionAttributes">
<props>
<prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
</props>
</property>
</bean>
<bean id="servicoImplManterTomada" class="br.com.sansys.tabelas.servico.ManterTomadaServicoI mpl">
<property name="manterTomadaDAO">
<ref local="manterTomadaDAO"/>
</property>
<property name="gerenciadorChaves">
<ref local="gerenciadorChaves"/>
</property>
<property name="activeRecordDAO">
<ref local="activeRecordDAO"/>
</property>
</bean>

<!-- Manter Tipo Estrutura Empresa -->
<bean id="servicoManterTipoEstruturaEmpresa" class="org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean">
<property name="transactionManager">
<ref local="transactionManager"/>
</property>
<property name="preInterceptors">
<list>
<ref local="sansysInterceptador"/>
</list>
</property>
<property name="target">
<ref local="servicoImplManterTipoEstruturaEmpresa"/>
</property>
<property name="transactionAttributes">
<props>
<prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
</props>
</property>
</bean>
<bean id="servicoImplManterTipoEstruturaEmpresa" class="br.com.sansys.tabelas.servico.ManterTipoEstruturaE mpresaServicoImpl">
<property name="activeRecordDAO">
<ref local="activeRecordDAO"/>
</property>
<property name="manterTipoEstruturaEmpresaDAO">
<ref local="manterTipoEstruturaEmpresaDAO"/>
</property>
</bean>

<!-- Pesquisar Estrutura Empresa Localizacao -->
<bean id="servicoPesquisarEstruturaLocalizacao" class="org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean">
<property name="transactionManager">
<ref local="transactionManager"/>
</property>
<property name="preInterceptors">
<list>
<ref local="sansysInterceptador"/>
</list>
</property>
<property name="target">
<ref local="servicoImplPesquisarEstruturaEmpresaLocalizacao"/>
</property>
<property name="transactionAttributes">
<props>
<prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
</props>
</property>
</bean>
<bean id="servicoImplPesquisarEstruturaEmpresaLocalizacao" class="br.com.sansys.tabelas.servico.PesquisarEstruturaEm presaLocalizacaoImpl">
<property name="activeRecordDAO">
<ref local="activeRecordDAO"/>
</property>
<property name="manterEstruturaEmpresaDAO">
<ref local="manterEstruturaEmpresaDAO"/>
</property>
<property name="componentePesquisaServico">
<ref bean="componentePesquisaServico"/>
</property>
<property name="pesquisarEstruturaLocalizacaoDAO">
<ref bean="pesquisarEstruturaLocalizacaoDAO"/>
</property>
</bean>

<!-- Help -->
<bean id="componenteHelpServico" class="org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean">
<property name="transactionManager">
<ref local="transactionManager"/>
</property>
<property name="preInterceptors">
<list>
<ref local="sansysInterceptador"/>
</list>
</property>
<property name="target">
<ref local="componenteHelpServicoImpl"/>
</property>
<property name="transactionAttributes">
<props>
<prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
</props>
</property>
</bean>
<bean id="componenteHelpServicoImpl" class="br.com.sansys.infraestrutura.servico.ComponenteHel pServicoImpl">
<property name="componenteHelpNegocio">
<ref local="componenteHelpNegocio"/>
</property>

</bean>
<!-- Manter Categoria Tipo Tarifa -->
<bean id="servicoManterCategoriaTipoTarifa" class="org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean">
<property name="transactionManager">
<ref local="transactionManager"/>
</property>
<property name="preInterceptors">
<list>
<ref local="sansysInterceptador"/>
</list>
</property>
<property name="target">
<ref local="servicoImplManterCategoriaTipoTarifa"/>
</property>
<property name="transactionAttributes">
<props>
<prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
</props>
</property>
</bean>
<bean id="servicoImplManterCategoriaTipoTarifa" class="br.com.sansys.tabelas.servico.ManterCategoriaTipoT arifaServicoImpl">

<property name="activeRecordDAO">
<ref local="activeRecordDAO"/>
</property>
</bean>


<!-- Manutenção de Estrutura Empresa -->
<bean id="servicoManterEstruturaEmpresa" class="org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean">
<property name="transactionManager">
<ref local="transactionManager"/>
</property>
<property name="preInterceptors">
<list>
<ref local="sansysInterceptador"/>
</list>
</property>
<property name="target">
<ref local="servicoImplManterEstruturaEmpresa"/>
</property>
<property name="transactionAttributes">
<props>
<prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
</props>
</property>
</bean>
<bean id="servicoImplManterEstruturaEmpresa" class="br.com.sansys.tabelas.servico.ManterEstruturaEmpre saServicoImpl">

<property name="manterEstruturaEmpresaDAO">
<ref local="manterEstruturaEmpresaDAO"/>
</property>

<property name="activeRecordDAO">
<ref local="activeRecordDAO"/>
</property>

<property name="manterMunicipioDAO">
<ref local="manterMunicipioDAO"/>
</property>
</bean>

<!-- Manutenção de Tarifa -->
<bean id="servicoManterTarifa" class="org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean">
<property name="transactionManager">
<ref local="transactionManager"/>
</property>
<property name="preInterceptors">
<list>
<ref local="sansysInterceptador"/>
</list>
</property>
<property name="target">
<ref local="servicoImplManterTarifa"/>
</property>
<property name="transactionAttributes">
<props>
<prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
</props>
</property>
</bean>
<bean id="servicoImplManterTarifa" class="br.com.sansys.tabelas.servico.ManterTarifaServicoI mpl">
<property name="activeRecordDAO">
<ref local="activeRecordDAO"/>
</property>
</bean>

<!-- Manutenção de Tabela Tarifaria -->
<bean id="servicoManterTabelaTarifaria" class="org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean">
<property name="transactionManager">
<ref local="transactionManager"/>
</property>
<property name="preInterceptors">
<list>
<ref local="sansysInterceptador"/>
</list>
</property>
<property name="target">
<ref local="servicoImplManterTabelaTarifaria"/>
</property>
<property name="transactionAttributes">
<props>
<prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
</props>
</property>
</bean>
<bean id="servicoImplManterTabelaTarifaria" class="br.com.sansys.tabelas.servico.ManterTabelaTarifari aServicoImpl">

<property name="activeRecordDAO">
<ref local="activeRecordDAO"/>
</property>
</bean>

<!-- Manutenção de Faixa Tarifa -->
<bean id="servicoManterFaixaTarifa" class="org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean">
<property name="transactionManager">
<ref local="transactionManager"/>
</property>
<property name="preInterceptors">
<list>
<ref local="sansysInterceptador"/>
</list>
</property>
<property name="target">
<ref local="servicoImplManterFaixaTarifa"/>
</property>
<property name="transactionAttributes">
<props>
<prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
</props>
</property>
</bean>
<bean id="servicoImplManterFaixaTarifa" class="br.com.sansys.tabelas.servico.ManterFaixaTarifaSer vicoImpl">
<property name="activeRecordDAO">
<ref local="activeRecordDAO"/>
</property>
<property name="manterFaixaTarifaDAO">
<ref local="manterFaixaTarifaDAO"/>
</property>
</bean>
<!-- Manter Localização -->
<bean id="servicoManterLocalizacao" class="org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean">
<property name="transactionManager">
<ref local="transactionManager"/>
</property>
<property name="preInterceptors">
<list>
<ref local="sansysInterceptador"/>
</list>
</property>
<property name="target">
<ref local="servicoImplManterLocalizacao"/>
</property>
<property name="transactionAttributes">
<props>
<prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
</props>
</property>
</bean>
<bean id="servicoImplManterLocalizacao" class="br.com.sansys.tabelas.servico.ManterLocalizacaoSer vicoImpl">

<property name="manterLocalizacaoDAO">
<ref local="manterLocalizacaoDAO"/>
</property>

<property name="activeRecordDAO">
<ref local="activeRecordDAO"/>
</property>
</bean>

<!-- Manter Tipo Localizacao -->
<bean id="servicoManterTipoLocalizacao" class="org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean">
<property name="transactionManager">
<ref local="transactionManager"/>
</property>
<property name="preInterceptors">
<list>
<ref local="sansysInterceptador"/>
</list>
</property>
<property name="target">
<ref local="servicoImplManterTipoLocalizacao"/>
</property>
<property name="transactionAttributes">
<props>
<prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
</props>
</property>
</bean>
<bean id="servicoImplManterTipoLocalizacao" class="br.com.sansys.tabelas.servico.ManterTipoLocalizaca oServicoImpl">
<property name="activeRecordDAO">
<ref local="activeRecordDAO"/>
</property>
</bean>


<!-- Tabela Tarifaria Existente -->
<bean id="servicoProcessoTabelaTarifariaExistente" class="org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean">
<property name="transactionManager">
<ref local="transactionManager"/>
</property>
<property name="preInterceptors">
<list>
<ref local="sansysInterceptador"/>
</list>
</property>
<property name="target">
<ref local="servicoImplProcessoTabelaTarifariaExistente"/>
</property>
<property name="transactionAttributes">
<props>
<prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
</props>
</property>
</bean>

<bean id="servicoImplProcessoTabelaTarifariaExistente" class="br.com.sansys.tabelas.servico.ProcessoTabelaTarifa riaExistenteServicoImpl">
<property name="activeRecordDAO">
<ref local="activeRecordDAO"/>
</property>
<property name="processoTabelaTarifariaExistenteNegocio">
<ref local="processoTabelaTarifariaExistenteNegocio"/>
</property>
</bean>

<bean id="processoTabelaTarifariaExistenteNegocio" class="br.com.sansys.tabelas.negocio.ProcessoTabelaTarifa riaExistenteNegocioImpl">
<property name="activeRecordDAO">
<ref local="activeRecordDAO"/>
</property>
</bean>

<!-- Serviço Manter Economia -->
<bean id="servicoManterEconomia" class="org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean">
<property name="transactionManager">
<ref local="transactionManager"/>
</property>
<property name="preInterceptors">
<list>
<ref local="sansysInterceptador"/>
</list>
</property>
<property name="target">
<ref local="servicoImplManterEconomia"/>
</property>
<property name="transactionAttributes">
<props>
<prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
</props>
</property>
</bean>

<bean id="servicoImplManterEconomia" class="br.com.sansys.cadastros.servico.ManterEconomiaServ icoImpl">
<property name="manterEconomiaDAO">
<ref local="manterEconomiaDAO"/>
</property>
<property name="activeRecordDAO">
<ref local="activeRecordDAO"/>
</property>
</bean>

<!-- Componente Pesquisar Endereco -->
<bean id="servicoComponentePesquisaEndereco" class="org.springframework.transaction.interceptor.Defaul tTransactionAttribute">
<property name="transactionManager">
<ref local="transactionManager"/>
</property>
<property name="preInterceptors">
<list>
<ref local="sansysInterceptador"/>
</list>
</property>
<property name="target">
<ref local="servicoImplComponentePesquisaEndereco"/>
</property>
<property name="transactionAttributes">
<props>
<prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
<prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
</props>
</property>
</bean>
<bean id="servicoImplComponentePesquisaEndereco" class="br.com.sansys.infraestrutura.servico.ComponentePes quisaEnderecoServicoImpl">
<property name="activeRecordDAO">
<ref local="activeRecordDAO"/>
</property>
</bean>

<!-- ##### DECLARACAO DE DAO ##### -->

<!-- Manter Usuario -->
<bean id="manterUsuarioDAO" class="br.com.sansys.seguranca.integracao.hibernate.Mante rUsuarioHibernate">
<property name="gerenciadorLog">
<ref local="gerenciadorLog"/>
</property>
<property name="sessionFactory">
<ref local="sessionFactory"/>
</property>
</bean>

<!-- Manter Perfil de Acesso -->
<bean id="manterPerfilUsuarioDAO" class="br.com.sansys.seguranca.integracao.hibernate.Mante rPerfilUsuarioHibernate">
<property name="gerenciadorLog">
<ref local="gerenciadorLog"/>
</property>
<property name="sessionFactory">
<ref local="sessionFactory"/>
</property>
</bean>

<!-- Perfil Acesso -->
<bean id="manterPerfilAcessoDAO" class="br.com.sansys.seguranca.integracao.hibernate.Mante rPerfilAcessoHibernate">
<property name="gerenciadorLog">
<ref local="gerenciadorLog"/>
</property>
<property name="sessionFactory">
<ref local="sessionFactory"/>
</property>
</bean>

<!-- Logar Usuario -->
<bean id="carregarContextoDAO" class="br.com.sansys.seguranca.integracao.hibernate.Carre garContextoHibernate">
<property name="gerenciadorLog">
<ref local="gerenciadorLog"/>
</property>
<property name="sessionFactory">
<ref local="sessionFactory"/>
</property>
</bean>


<!-- Manter Modulo -->
<bean id="manterModuloDAO" class="br.com.sansys.seguranca.integracao.hibernate.Mante rModuloHibernate">
<property name="gerenciadorLog">
<ref local="gerenciadorLog"/>
</property>
<property name="sessionFactory">
<ref local="sessionFactory"/>
</property>
</bean>

<!-- Manter Funcionalidade Modulo -->
<bean id="manterFuncionalidadePerfilDAO" class="br.com.sansys.seguranca.integracao.hibernate.Mante rFuncionalidadePerfilHibernate">
<property name="gerenciadorLog">
<ref local="gerenciadorLog"/>
</property>
<property name="sessionFactory">
<ref local="sessionFactory"/>
</property>
</bean>

<!-- Manter Acao Funcionalidade -->
<bean id="manterAcaoFuncionalidadeDAO" class="br.com.sansys.seguranca.integracao.hibernate.Mante rAcaoFuncionalidadeHibernate">
<property name="gerenciadorLog">
<ref local="gerenciadorLog"/>
</property>
<property name="sessionFactory">
<ref local="sessionFactory"/>
</property>
</bean>

<!-- Manter Permissao -->
<bean id="manterPermissaoDAO" class="br.com.sansys.seguranca.integracao.hibernate.Mante rPermissaoHibernate">
<property name="gerenciadorLog">
<ref local="gerenciadorLog"/>
</property>
<property name="sessionFactory">
<ref local="sessionFactory"/>
</property>
</bean>

<!-- Manter Funcionalidade -->
<bean id="manterFuncionalidadeDAO" class="br.com.sansys.seguranca.integracao.hibernate.Mante rFuncionalidadeHibernate">
<property name="gerenciadorLog">
<ref local="gerenciadorLog"/>
</property>
<property name="sessionFactory">
<ref local="sessionFactory"/>
</property>
</bean>

<!-- Manter Agencia -->
<bean id="manterAgenciaDAO" class="br.com.sansys.tabelas.integracao.hibernate.ManterA genciaHibernate">
<property name="sessionFactory">
<ref local="sessionFactory"/>
</property>
</bean>

<!-- Gerenciador de Chaves -->
<bean id="gerenciadorChaves" class="br.com.sansys.infraestrutura.util.componente.Geren ciadorChaves">
<property name="tabelaBasicaDAO">
<ref local="tabelaBasicaDAO"/>
</property>
</bean>
<bean id="tabelaBasicaDAO" class="br.com.sansys.infraestrutura.integracao.hibernate. TabelaBasicaHibernate">
<property name="sessionFactory">
<ref local="sessionFactory"/>
</property>
</bean>

<!-- Gerenciador Log -->
<bean id="gerenciadorLog" class="br.com.sansys.infraestrutura.util.componente.Geren ciadorLog">
<property name="gerenciadorLogDAO">
<ref local="gerenciadorLogDAO"/>
</property>
</bean>

<bean id="gerenciadorLogDAO" class="br.com.sansys.infraestrutura.integracao.hibernate. GerenciadorLogHibernate">
<property name="sessionFactory">
<ref local="sessionFactory"/>
</property>
</bean>

<!-- Interceptador -->
<bean id="sansysInterceptador" class="br.com.sansys.infraestrutura.util.interceptador.Sa nsysInterceptador"/>


<!--Componente de pesquisa -->
<bean id="efetuarPesquisaDAO" class="br.com.sansys.infraestrutura.integracao.hibernate. EfetuarPesquisaHibernate">
<property name="sessionFactory"><ref local="sessionFactory"/>
</property>
</bean>

<!--Manter Cargo -->
<bean id="manterCargoDAO" class="br.com.sansys.tabelas.integracao.hibernate.ManterC argoHibernate">
<property name="gerenciadorLog">
<ref local="gerenciadorLog"/>
</property>
<property name="sessionFactory"><ref local="sessionFactory"/>
</property>
</bean>

<!--Manter Estrutura Empresa -->
<bean id="manterEstruturaEmpresaDAO" class="br.com.sansys.tabelas.integracao.hibernate.ManterE struturaEmpresaHibernate">
<property name="gerenciadorLog">
<ref local="gerenciadorLog"/>
</property>
<property name="sessionFactory"><ref local="sessionFactory"/>
</property>
</bean>
<bean id="manterAtivoDAO" class="br.com.sansys.tabelas.integracao.hibernate.ManterA tivoHibernate">
<property name="gerenciadorLog">
<ref local="gerenciadorLog"/>
</property>
<property name="sessionFactory"><ref local="sessionFactory"/>
</property>
</bean>

<!-- Manter Municipio -->

<bean id="manterMunicipioDAO" class="br.com.sansys.tabelas.integracao.hibernate.ManterM unicipioHibernate">
<property name="gerenciadorLog">
<ref local="gerenciadorLog"/>
</property>
<property name="sessionFactory">
<ref local="sessionFactory"/>
</property>
</bean>

<!-- Manter Uf -->

<bean id="manterUfDAO" class="br.com.sansys.tabelas.integracao.hibernate.ManterU fHibernate">
<property name="gerenciadorLog">
<ref local="gerenciadorLog"/>
</property>
<property name="sessionFactory">
<ref local="sessionFactory"/>
</property>
</bean>

<!-- Manter Tabelas Basicas -->

<bean id="manterTabelasBasicasDAO" class="br.com.sansys.tabelas.integracao.hibernate.ManterT abelasBasicasHibernate">
<property name="gerenciadorLog">
<ref local="gerenciadorLog"/>
</property>
<property name="sessionFactory">
<ref local="sessionFactory"/>
</property>
</bean>

<!-- Active Record -->

Colin Sampaleanu
Oct 28th, 2004, 10:16 AM
I don't actually understand exactly what you're asking, i.e. what your problem is.

As per the manual though, beans you instantiate are singletons by default, unless you change that with the singleton attribute. If your objects actually have state, then you need to make them non-singletons...