This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="alert alert-info"> | |
<button type="button" class="close" data-dismiss="alert">×</button> | |
<strong>Uwaga! </strong>Ten formularz umożliwia dodawanie wielu pracowników na raz. Dla każdego pracownika którego chcesz dodać msusisz podać przynajmniej imie i nazwisko. | |
</div> | |
<!-- Jeden wiersz z formularza który kopiuje--> | |
<div class="hide"> | |
<div class="single-employee-fieldset"> | |
<div class="row"> | |
<p class="span12 text-error"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function(){ | |
$("#search_form").submit(function(event){ | |
if (document.getElementById("q").value.length < 2){ | |
event.preventDefault(); | |
} | |
}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<bean id="sessionFactory" | |
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"> | |
<property name="dataSource" ref="dataSource" /> | |
<property name="mappingResources"> | |
<list> | |
<!--Tutaj właśnie lista naszych klass.--> | |
<value>User.hbm.xml</value> | |
<value>Order.hbm.xml</value> | |
</list> | |
</property> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<bean id="sessionFactory" | |
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"> | |
<property name="dataSource" ref="dataSource" /> | |
<!--Podaj wyłącznie package z encjami--> | |
<property name="packagesToScan" value="com.my.own.entities" /> | |
<property name="hibernateProperties"> | |
<props> | |
<prop key="dialect">org.hibernate.dialect.MySQLDialect</prop> | |
</props> | |
</property> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dependency> | |
<groupId>org.apache.commons</groupId> | |
<artifactId>commons-dbcp2</artifactId> | |
<version>2.0</version> | |
</dependency> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<bean id="dataSource" | |
class="org.apache.commons.dbcp2.BasicDataSource" destroy-method="close"> | |
<property name="driverClassName" value="com.mysql.jdbc.Driver"/> | |
<property name="url" value="jdbc:mysql://localhost:3306/test"/> | |
<property name="username" value="root"/> | |
<property name="password" value="root"/> | |
</bean> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<bean id="LocalEntityManagerFactoryBean" | |
class="org.springframework.orm.jpa.LocalEntityManagerFactoryBean"> | |
<property name="persistenceUnitName" value="pu-name" /> | |
</bean> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<bean id="LocalContainerEntityManagerFactoryBean" class= | |
"org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"> | |
<property name="packagesToScan" value="application.models" /> | |
<property name="dataSource" ref="dataSource" /> | |
<property name="jpaVendorAdapter" ref="jpaVendorAdapter" /> | |
</bean> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<bean id="jpaVendorAdapter" | |
class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter"> | |
<property name="database" value="MYSQL" /> | |
<property name="showSql" value="true"/> | |
<property name="generateDdl" value="false"/> | |
<property name="databasePlatform" value="org.hibernate.dialect.MySQLDialect" /> | |
</bean> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dependency> | |
<groupId>org.hibernate</groupId> | |
<artifactId>hibernate-entitymanager</artifactId> | |
<version>4.3.6.Final</version> | |
</dependency> |
OlderNewer