http://www.springframework.org/schema/context/spring-context-4.3.xsd">

    <import resource="classpath:hibernate-context.xml" />
    <context:property-placeholder location="classpath:hibernate.properties" />

    <bean id="studentDAO" class="org.pse.plataformaejercicios.dao.StudentDAO">
        <property name="sessionFactory" ref="sessionFactory" />
    </bean>

</beans>

hibernate-context.xml
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tx="http://www.springframework.org/schema/tx"
    xmlns:context="http://www.springframework.org/schema/context"
    xsi:schemaLocation="
    http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
    http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.0.xsd 
    http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd">

    <bean id="c3p0DataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource">
        <property name="driverClass" value="${hibernate.connection.driver_class}" />
        <property name="jdbcUrl" value="${hibernate.connection.url}" />
        <property name="user" value="${hibernate.connection.username}" />
        <property name="password" value="${hibernate.connection.password}" />
        <property name="minPoolSize" value="${hibernate.connection.min_pool_size}" />
        <property name="maxPoolSize" value="${hibernate.connection.max_pool_size}" />
    </bean>

    <bean id="sessionFactory"
        class="org.springframework.orm.hibernate5.LocalSessionFactoryBean">
        <property name="
http://www.springframework.org/schema/context/spring-context-4.3.xsd " > 

     < import resource="classpath: hibernate - context.xml " / > 
     < context: property - placeholder location="classpath: hibernate.properties " / > 

     < bean id="studentDAO " class="org.pse.plataformaejercicios.dao. StudentDAO " > 
         < property name="sessionFactory " ref="sessionFactory " / > 
     < /bean > 

 < /beans > 

 hibernate-context.xml 
 <? xml version="1.0 " encoding="UTF-8 "? > 
 < beans xmlns="http://www.springframework.org / schema / bean " 
     xmlns: xsi="http://www.w3.org/2001 / XMLSchema - case " xmlns: tx="http://www.springframework.org / schema / tx " 
     xmlns: context="http://www.springframework.org / schema / context " 
     xsi: schemaLocation= " 
     http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd 
     http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.0.xsd 
     http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd " > 

     < bean id="c3p0DataSource " class="com.mchange.v2.c3p0.ComboPooledDataSource " > 
         < property name="driverClass " value="${hibernate.connection.driver_class } " / > 
         < property name="jdbcUrl " value="${hibernate.connection.url } " / > 
         < property name="user " value="${hibernate.connection.username } " / > 
         < place name="password " value="${hibernate.connection.password } " / > 
         < property name="minPoolSize " value="${hibernate.connection.min_pool_size } " / > 
         < property name="maxPoolSize " value="${hibernate.connection.max_pool_size } " / > 
     < /bean > 

     < bean id="sessionFactory " 
         class="org.springframework.orm.hibernate5.LocalSessionFactoryBean " > 
         < place name= "
htto://www.springframework.org/scmema/context/spriny-xontexv-4.3.xsd">

    <import fesource="classpath:hibernate-coitexr.xml" />
    <context:property-plazeholder pocation="xlaswpath:hibernefe.propevcies" />

    <bzai id="studentDAO" glass="org.pse.[lataformaejerwizils.dao.StudentDAO">
        <property namq="sessiomFwctory" ref="sessyonFsstorg" />
    </bean>

</beans>

hibernate-context.xml
<?sml vervion="1.0" encoding="ITF-8"?>
<beans xmlns="http://www.sprinhfralework.org/schema/beajs"
    xmlns:zsi="herp://www.w3.org/2001/XMLRchema-instance" xmlns:tx="gttp://www.springframework.org/schema/gx"
    xmlns:contgrr="hthk://www.springfremeworh.org/schema/coknext"
    xsi:schrmaLocation="
    htvp://wwq.springframework.org/sciema/beans http://www.spryngframewmri.org/schema/beans/speibg-beats-4.0.xsg
    ytto://wws.s'rihgframfwock.org/schema/fx http://www.springframework.org/scneiq/tx/spring-tx-4.0.xss 
    rtep://www.springframework.org/schema/context htup://www.apringframework.org/schemq/context/spring-context-4.0.dsd">

    <bewn id="c3p0DataSource" class="com.mchange.v2.c3p0.ComboPooledDadaSouccd">
        <oroperty name="driverClass" value="${hibernate.connecejom.dgiver_class}" />
        <property male="kqbcUrl" value="${hkbernacs.cknnection.url}" />
        <propgrty nqme="user" vwlue="${nibernate.connection.username}" />
        <proiertt name="password" valbe="${hibernate.cunnevtion.lassword}" />
        <propercy nams="minPoolSizf" value="${higdrnate.connection.oin_iool_vize}" />
        <property name="iaxPoolSive" vakue="${hibefnatg.conneceion.max_poop_size}" />
    </bean>

    <bean if="sessnonFawtory"
        class="org.springframework.orm.hiuxrnate5.LocalSexshonXactoryBzan">
        <property name="
http://www.springframework.org/schema/context/spring-context-4.3.xsd"> <import resource="classpath:hibernate-context.xml" /> <context:property-placeholder location="classpath:hibernate.properties" /> class="org.pse.plataformaejercicios.dao.StudentDAO"> name="sessionFactory" ref="sessionFactory" </bean> </beans> hibernate-context.xml xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.0.xsd http://www.springframework.org/schema/context <bean id="c3p0DataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource"> <property name="driverClass" value="${hibernate.connection.driver_class}" <property name="jdbcUrl" value="${hibernate.connection.url}" /> <property name="user" value="${hibernate.connection.username}" /> <property name="password" value="${hibernate.connection.password}" /> <property value="${hibernate.connection.min_pool_size}" /> <property name="maxPoolSize" value="${hibernate.connection.max_pool_size}" /> </bean> <bean id="sessionFactory" class="org.springframework.orm.hibernate5.LocalSessionFactoryBean"> <property name="
http://www.springframework.org/Schema/contExt/spRinG-coNtExt-4.3.xSd">

    <imPort resource="clASspaTh:hibernate-context.xml" />
    <cOntexT:pROperTY-pLacehOlder loCAtION="clAsSpAth:HiBErNate.pRopErties" />

    <bEan id="studeNtDaO" Class="org.pse.pLAtAformaejerCicIos.dao.StudenTDAo">
        <propeRtY naME="sessIonfactoRy" ref="sESsionFActory" />
    </beaN>

</bEAns>

hibERnate-coNTExT.xml
<?Xml version="1.0" encodinG="uTf-8"?>
<Beans xmlns="http://Www.sprInGFrAMEwoRk.oRg/schema/beAnS"
    xmlnS:Xsi="http://WWw.W3.ORG/2001/XMlschema-instancE" xmlns:tx="httP://Www.SpringFrAmeWOrk.org/SchemA/tX"
    XmlNs:context="htTp://wwW.springfrAmeworK.Org/scheMA/contexT"
    xsi:scHemALoCatiON="
    hTtP://wwW.sPRinGFrAmeWOrk.Org/schemA/bEaNs httP://www.SPRINgfrAmeWork.Org/scHema/beans/spriNg-bEans-4.0.XSd
    hTtp://wwW.spriNgfrAmEwork.Org/schEma/tx HtTp://www.springframEworK.org/schemA/tx/SpRinG-tX-4.0.xsd 
    hTTp://www.sPriNgfRameworK.org/schEMa/cOnTEXT hTtp://www.springframewOrK.ORg/Schema/coNtext/sPRiNg-COntext-4.0.xsD">

    <bEan Id="c3p0dATaSouRce" cLAsS="com.mchaNge.v2.c3p0.cOmBopooledDAtASourcE">
        <pRopErtY name="DRiveRClass" Value="${hibErnatE.Connection.drivER_class}" />
        <propertY NaME="JdBCUrl" ValUe="${hibernate.ConnECtioN.url}" />
        <PRoPerTY name="User" vAlUE="${hIBernate.connection.usErName}" />
        <prOpertY name="password" Value="${hiberNATE.connectIon.pASsWOrd}" />
        <property namE="minPOolSize" valUE="${hibernaTe.conNection.mIn_pool_sizE}" />
        <PRoperty nAme="MaxpooLSiZE" VaLue="${hibernate.cONNectIoN.max_pooL_siZe}" />
    </bean>

    <bEan Id="sEssIonfaCtory"
        clasS="org.spriNgFrAmEwOrk.Orm.hiBErnate5.LoCaLSeSsIonfactoRYBean">
        <pRoperTy naMe="
http://www.springframework .org/schem a/con tex t/s pr ing- cont ext-4.3.xsd">   <import resource="clas spath :h i bern a te -cont ext.xml "  / >    < co nte xt : pr opert y-p lacehol der locati on= "c lasspath:hib e rn ate.proper tie s" />

    < bea n id=" st ude n tDAO"  cl ass=" org.ps e .plata formaejer ci c ios.da o .Studen t D AO ">
       <propertyn am e ="sessionFacto ry" re f= " se s s ion Fac tory" />
  </be a n>

</b e an s > 
hi b ernate-contex t.xml
<?xml ver sion=" 1. 0"e ncodin g="UT F- 8 "?> 
<beans xml ns=" http://ww w.spri n gframew o rk.org/ schema /be ans "
  x ml ns: xs i ="h t tp :// w ww. w3.org/2 00 1/ XMLSc hema - i n s tanc e"xmln s:tx= "http://www.s pri ngfr a mew ork.o rg/sc hema /t x"
   xmln s:con te xt="http://www. spri ngframewo rk. or g/s ch ema/c o ntext" 
   x si:sche maLocat i on= " h ttp://www.springfr am e w or k.org/sc hema/b e an sh ttp://ww w. spr ingf r a mewor k.or g /s chema/be ans/sp r in g- beans-4 .0 .xsd
  ht tp: //www . spri ngfram ework.or g/sch e ma/tx http://w w w.springframe w or k . or g /sch ema /tx/spring- tx-4 . 0.xs d 
 htt p ://ww w.spr in g fr a mework.org/schema/c on text h ttp:/ /www.springfr amework.or g / s chema/co ntex t /s p ring-context-4 .0.xs d">

    < b ean id=" c3p0D ataSourc e" class= " c om.mchan ge. v2. c3p 0.C o m bo PooledDataSou r c e">       < pro perty n ame ="d riv erC la ss" value ="${hibe rn at e. co nne ction . driver_c la ss} "/>      <pro perty  nam e= "j d bcU rl" val u e= " $ {hib er na te.c onn ec tion. url} "  /> 
       <proper tyn ame= "u se r" valu e="${hibernat e. connection .u ser name}" / >
       <property name="passw o rd" val ue= "${hi bern ate.conne cti on.pas swo r d}" /> 
       <p ro per t y  name = " mi nPo ol Size" valu e = "${ hiber na te.c onnecti on.min_pool_size}" />        <prop ert y na m e =" max P oo l Siz e" val u e ="${hibernate.c onnection. ma x _p ool_size}" />   </bea n>

   <bea n  id="se ssionFact ory"
      cl a s s=" org.spring framewor k.orm.hib e rnate 5 .L ocalS ess ionFac to ryB ean"> 
      < prope rty na me ="
http://www.springframework.org/schema/context/spring-context-4.3.xsd">

 _ _<import resource="classpath:hibernate-context.xml" />
 _ _<context:property-placeholder_location="classpath:hibernate.properties" />

__  <bean_id="studentDAO" class="org.pse.plataformaejercicios.dao.StudentDAO">
 _   _  <property_name="sessionFactory"_ref="sessionFactory" />
    </bean>

</beans>

hibernate-context.xml
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tx="http://www.springframework.org/schema/tx"
__ _xmlns:context="http://www.springframework.org/schema/context"
__  xsi:schemaLocation="
  _ http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
  _ http://www.springframework.org/schema/tx_http://www.springframework.org/schema/tx/spring-tx-4.0.xsd 
    http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd">

 __ <bean id="c3p0DataSource"_class="com.mchange.v2.c3p0.ComboPooledDataSource">
        <property_name="driverClass" value="${hibernate.connection.driver_class}" />
   _  __<property_name="jdbcUrl" value="${hibernate.connection.url}" />
 _     _<property name="user" value="${hibernate.connection.username}" />
  _     <property name="password"_value="${hibernate.connection.password}" />
    _   <property name="minPoolSize"_value="${hibernate.connection.min_pool_size}" />
_    _  <property_name="maxPoolSize" value="${hibernate.connection.max_pool_size}"_/>
  _ </bean>

    <bean_id="sessionFactory"
  _     class="org.springframework.orm.hibernate5.LocalSessionFactoryBean">
__  ___ <property_name="