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
turbo login <my-user> | |
turbo run ssms2014 |
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
from clean | |
startup file EXIT 0 |
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
# JDK 8 with the latest SBT | |
spoon jdk:8.20,sbt | |
# JDK 7 with SBT 0.13.5 | |
spoon jdk:8.20,sbt:0.13.5 | |
# JDK 6 with SBT 0.12.4 | |
spoon jdk:8.20,sbt:0.12.4 | |
# Need more memory? Use the 64Bit version of the JDK |
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
val database: DatabaseAccess = Database("adbcj:pooled:mysql://localhost/adbcj-demo", | |
"adbcj", | |
"adbcj-pwd", | |
StandardProperties.CAPTURE_CALL_STACK->"true") // Enable debug stack traces |
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
Map<String,String> poolConfig = new HashMap<String, String>(); | |
poolConfig.put("pool.maxConnections","50"); | |
poolConfig.put("pool.maxWaitForConnection","500"); | |
ConnectionManager pooledMysql | |
= ConnectionManagerProvider.createConnectionManager( | |
"adbcj:pooled:mysql://localhost/adbcjtck", | |
"root", | |
"", | |
poolConfig); |
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> | |
<artifactId>maven-antrun-plugin</artifactId> | |
<version>1.6</version> | |
<dependencies> | |
<!-- Using the Versant JPA enhancer as a dependency here --> | |
<dependency> | |
<groupId>com.versant</groupId> | |
<artifactId>versant-jpa-enhancer</artifactId> | |
<version>1.0-SNAPSHOT</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
private Test myListTestSuite() { | |
return ListTestSuiteBuilder.using( | |
// This class is responsible for creating the collection | |
// And providing data, which can be put into the collection | |
// Here we use a abstract generator which will create strings | |
// which will be put into the collection | |
new TestStringListGenerator(){ | |
@Override | |
protected List<String> create(String[] elements) { | |
// Fill here your collection with the given elements |
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
set LIB_PATH=%VERSANT_ROOT%/lib | |
mvn install:install-file -DgroupId=com.versant -DartifactId=versant-jpa-enhancer -Dpackaging=jar -Dversion=8.0-SNAPSHOT -Dfile=%LIB_PATH%/vodjpa.jar -DpomFile=./pom-versant-jpa-enhancer.xml | |
mvn install:install-file -DgroupId=com.versant -DartifactId=versant-jpa -Dpackaging=jar -Dversion=8.0-SNAPSHOT -Dfile=%LIB_PATH%/vodjpa.jar -DpomFile=./pom-versant-jpa.xml |
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
<entity-mappings xmlns="http://java.sun.com/xml/ns/persistence/orm" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm | |
http://java.sun.com/xml/ns/persistence/orm_2_0.xsd" | |
version="2.0"> | |
<entity class="info.gamlor.jpa.NamedItem" access="FIELD"> | |
<attributes> | |
<id name="id"/> | |
</attributes> | |
</entity> |
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
// grab the extension | |
val dbSupport = Database(actorSystem) | |
val result = for{ | |
// open the connection asynchronously | |
connection <- dbSupport.connect() | |
// Execute a query quest | |
newestEmployee <- connection.executeQuery( | |
"SELECT first_name,last_name,hire_date FROM employees " + | |
"ORDER BY hire_date DESC " + |