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> |
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
program project1; | |
uses interfejs, obliczenia, pliki; | |
var | |
menuprogramu:integer; | |
begin | |
writeln('Podaj wartosc z Menu: '+#10#13+'1.szyfrowanie'+#10#13+'2.deszyfrowanie'); | |
readln(menuprogramu); | |
repeat |