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.perf4j</groupId> | |
<artifactid>perf4j</artifactId> | |
<version>0.9.16</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
import java.util.HashMap; | |
import javax.cache.CacheException; | |
import org.perf4j.StopWatch; | |
public class TestPerfHashmap { | |
public static final String KEY = "KEY"; | |
public static final String VALUE = "VALUE"; |
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>com.google.guava</groupId> | |
<artifactid>guava</artifactId> | |
<version>12.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
import java.util.concurrent.TimeUnit; | |
import org.perf4j.StopWatch; | |
import com.google.common.cache.Cache; | |
import com.google.common.cache.CacheBuilder; | |
public class TestPerfGuavaCache { | |
public static final String KEY = "KEY"; |
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>net.sf.ehcache</groupId> | |
<artifactid>ehcache-jcache</artifactId> | |
<version>1.4.0-beta1</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
import java.util.concurrent.TimeUnit; | |
import javax.cache.Cache; | |
import javax.cache.CacheConfiguration.Duration; | |
import javax.cache.CacheConfiguration.ExpiryType; | |
import javax.cache.CacheException; | |
import javax.cache.Caching; | |
import org.perf4j.StopWatch; |
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
<plugin> | |
<groupId>org.codehaus.mojo</groupId> | |
<artifactId>hibernate3-maven-plugin</artifactId> | |
<version>2.2</version> | |
<configuration> | |
<components> | |
<component> | |
<name>hbm2ddl</name> | |
<implementation>jpaconfiguration</implementation> | |
<outputDirectory>target/sql</outputDirectory> |
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
<componentProperties> | |
<persistenceunit>monPU</persistenceunit> | |
<outputfilename>db-scheme.sql</outputfilename> | |
<create>true</create> | |
<export>false</export> | |
<format>true</format> | |
</componentProperties> |
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
<persistence xmlns="http://java.sun.com/xml/ns/persistence" version="1.0"> | |
<persistence-unit name="DefaultPersistenceUnit" transaction-type="RESOURCE_LOCAL"> | |
<properties> | |
<!-- | |
<property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/> | |
--> | |
<property name="hibernate.dialect" value="org.hibernate.dialect.Oracle10gDialect"/> | |
</properties> | |
</persistence-unit> | |
</persistence> |
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
mvn -Dmaven.test.skip | |
mvn dependency:resolve | |
mvn dependency:tree : arbre | |
mvn install:install-file -Dfile=as3corelib.swc -DgroupId=com.adobe -DartifactId=as3corelib -Dversion=0.93 -Dpackaging=swc -DgeneratePom=true -DcreateChecksum=true | |
#compiler src/test/java car compile tout court ne fait que src/main/java | |
mvn test-compile | |
mvn versions:set -DnewVersion=1.2.3-SNAPSHOT |
OlderNewer