Monthly Archives: กันยายน 2014

spring ORM Hibernate depenpency

<!– Hibernate –>                <properties>              <java-version>1.6</java-version>              <org.springframework-version>4.0.3.RELEASE</org.springframework-version>              <org.aspectj-version>1.6.10</org.aspectj-version>              <org.slf4j-version>1.6.6</org.slf4j-version>   … Continue reading

Posted in java | Leave a comment

Spring table is not mapped [ from table ]

Description: Your query is not a SQL query. It’s a HQL query. It thus should not use table names, but entity class names (from Student instead of from student). In above code we using following line. Here “student” is not … Continue reading

Posted in java | Leave a comment

oracle jdbc connection tester

load OracleConnectionTester for tester and run command java -jar OracleJDBC.jar Here is a screenshot of a run done previously.

Posted in java | Leave a comment

spring oracle,mysql bean datasource

<beans:bean id="dataSource" destroy-method="close">           <!–<beans:property name="driverClassName" value="com.mysql.jdbc.Driver" />           <beans:property name="url" value="jdbc:mysql://$host:$port/$dbname" />           <beans:property name="username" value="$user" />           <beans:property name="password" value="$pass" /> –> … Continue reading

Posted in java | Leave a comment

spring use oracle jdbc driver

1. Get Oracle JDBC Driver Two ways to get the Oracle jdbc driver : Oracle.com Install It To install your Oracle jdbc driver, issue following command : mvn install:install-file -Dfile={Path/to/your/ojdbc.jar} -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=11.2.0 -Dpackaging=jar See following full example : D:\>mvn … Continue reading

Posted in java | Leave a comment