Hibernate is adding 2 entries into database
<p>I am using Spring MVC with Hibernate for the first time and every time I add something to the database using the Repository It enters it twice.
I tried to see if there is some other places that Beans are being created and I couldn't see anything</p>

<p>spring-servlet.xml</p>

<pre><code> &lt;context:component-scan base-package="com.controllers"/&gt;
&lt;context:component-scan base-package="repositories"/&gt;


&lt;!-- This sets the default home page--&gt;
&lt;view-controller path="/" view-name="/login"/&gt;
&lt;!-- Sets the default path for all the Resources --&gt;
&lt;resources mapping="/resources/**" location="/resources/" /&gt;

&lt;beans:bean id="dataSource"
            class="org.springframework.jdbc.datasource.DriverManagerDataSource"&gt;
    &lt;beans:property  name="driverClassName" value="com.mysql.jdbc.Driver"/&gt;
    &lt;beans:property name="url"
                    value="jdbc:mysql://localhost:3306/yossi2"/&gt;
    &lt;beans:property name="username" value="root" /&gt;
    &lt;beans:property name="password" value="yossi" /&gt;
&lt;/beans:bean&gt;

&lt;!-- Hibernate 4 SessionFactory Bean definition --&gt;
&lt;beans:bean id="sessionFactory"
            class="org.springframework.orm.hibernate4.LocalSessionFactoryBean"&gt;
    &lt;beans:property name="dataSource" ref="dataSource" /&gt;
    &lt;beans:property name="annotatedClasses"&gt;
        &lt;beans:list&gt;
            &lt;beans:value&gt;models.entities.CardInUse&lt;/beans:value&gt;
            &lt;beans:value&gt;models.entities.Cards&lt;/beans:value&gt;
            &lt;beans:value&gt;models.entities.Customer&lt;/beans:value&gt;
            &lt;beans:value&gt;models.entities.Purchases&lt;/beans:value&gt;
            &lt;beans:value&gt;models.entities.Subscription&lt;/beans:value&gt;
            &lt;beans:value&gt;models.entities.UserCredentials&lt;/beans:value&gt;
            &lt;beans:value&gt;models.entities.Vendor&lt;/beans:value&gt;
        &lt;/beans:list&gt;
    &lt;/beans:property&gt;
    &lt;beans:property name="hibernateProperties"&gt;
        &lt;beans:props&gt;
            &lt;beans:prop key="hibernate.dialect"&gt;org.hibernate.dialect.MySQLDialect
            &lt;/beans:prop&gt;
            &lt;beans:prop key="hibernate.show_sql"&gt;true&lt;/beans:prop&gt;
            &lt;beans:prop key="hibernate.format_sql"&gt;true&lt;/beans:prop&gt;
        &lt;/beans:props&gt;
    &lt;/beans:property&gt;
&lt;/beans:bean&gt;

&lt;tx:annotation-driven transaction-manager="transactionManager"/&gt;

&lt;beans:bean id="transactionManager"
            class="org.springframework.orm.hibernate4.HibernateTransactionManager"&gt;
    &lt;beans:property name="sessionFactory" ref="sessionFactory" /&gt;
&lt;/beans:bean&gt;

&lt;beans:bean id="applicationContextProvder" class="com.controllers.ApplicationContextProvider"/&gt;
</code></pre>

<p></p>

<pre><code>@RequestMapping(value = "/db")
public String dbTester(){
    UserCredentialsRepository userCredentialsRepository = applicationContext.getBean(UserCredentialsRepository.class);
    UserCredentials user = new UserCredentials();
    user.setUsername("yossisilb");
    user.setPassword("hello");
    user.setGroup("admin");
    user.setVendor(null);

    userCredentialsRepository.saveUserCreds(user);
   return "vendorLanding";
}
</code></pre>

<p>And my Repository: </p>

<pre><code>    @Repository
public class UserCredentialsRepository implements repositories.UserCredentialsRepository {

@Autowired
public SessionFactory sessionFactory;

@Transactional
public void saveUserCreds(UserCredentials creds) {
    sessionFactory.getCurrentSession().save(creds);
}
</code></pre>