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
/*CREATE EXTENSION tablefunc*/ | |
INSERT INTO functions_header VALUES | |
('AM'), | |
('CM'), | |
('NM'); | |
SELECT * FROM crosstab( | |
' |
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
jar { | |
from { | |
configurations.compile.collect { it.isDirectory() ? it : zipTree(it).matching { exclude 'META-INF/spring.handlers' } } | |
} | |
from(file("src/main/resources/spring.handlers")) { | |
into "META-INF" | |
} | |
manifest { | |
attributes 'Implementation-Title': 'Bla-bla', |
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
compile('com.tinkerpop.blueprints:blueprints-neo4jbatch-graph:2.1.0') { | |
exclude group: "org.neo4j", module: "neo4j" | |
} | |
compile('com.tinkerpop.blueprints:blueprints-neo4j-graph:2.0.0') { | |
exclude group: "org.neo4j", module: "neo4j" | |
} | |
compile 'com.tinkerpop.gremlin:gremlin-java:2.1.0' | |
compile 'org.neo4j:neo4j-backup:1.8.M02' | |
compile 'org.neo4j:neo4j-com:1.8.M02' |
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
@Configuration | |
@ComponentScan("com.bla") | |
public class SpringConfig { | |
} | |
@ContextConfiguration(classes = SpringConfig.class) | |
@ActiveProfiles("test") | |
@RunWith(SpringJUnit4ClassRunner.class) | |
public class SpringTestBase { |
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
RAMDirectory ramDirectory = new RAMDirectory(); | |
Analyzer analyzer = new SimpleAnalyzer(Version.LUCENE_36); | |
IndexWriterConfig config = new IndexWriterConfig(Version.LUCENE_36, analyzer); | |
int processed = 0; | |
try { | |
IndexWriter writer = new IndexWriter(ramDirectory, config); | |
writer.commit(); | |
...... |
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
// compile 'org.apache.lucene:lucene-spellchecker:3.6.1' | |
private JaroWinklerDistance jaroWinklerDistance = new JaroWinklerDistance(); |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<beans xmlns="http://www.springframework.org/schema/beans" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns:context="http://www.springframework.org/schema/context" | |
xmlns:tx="http://www.springframework.org/schema/tx" | |
xsi:schemaLocation="http://www.springframework.org/schema/beans | |
http://www.springframework.org/schema/beans/spring-beans-3.1.xsd | |
http://www.springframework.org/schema/context | |
http://www.springframework.org/schema/context/spring-context-3.1.xsd | |
http://www.springframework.org/schema/tx |
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
@Configuration | |
@PropertySource("classpath:/file.properties") | |
public class BeanProducer { | |
@Inject | |
private Environment env; | |
@Bean | |
public SomeClass someClass() { | |
String key = env.getProperty("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
@MappedSuperclass | |
public abstract class AbstractEntity<T extends AbstractEntity> { | |
private static final String SEQUENCE_NAME = "id_seq"; | |
@Id | |
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = SEQUENCE_NAME) | |
@SequenceGenerator(name = SEQUENCE_NAME, sequenceName = SEQUENCE_NAME) | |
private Long id; | |
public Long getId() { |
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
<property name="connection.release_mode" value="after_transaction" /> |
OlderNewer