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
public interface I1<K, V> { | |
V key(K k); | |
} | |
public interface I2<K, V> { | |
V key(K k); | |
} | |
public class C implements I1<String, String>, I2<Long, Long> { | |
@Override |
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
manu@Emmanuel-MBP-15 ceylon-compiler (master) $ ant clean publish | |
Buildfile: /Users/manu/projects/notbackedup/git/ceylon/ceylon-compiler/build.xml | |
clean: | |
[delete] Deleting directory /Users/manu/projects/notbackedup/git/ceylon/ceylon-compiler/build | |
compiler.classes: | |
[mkdir] Created dir: /Users/manu/projects/notbackedup/git/ceylon/ceylon-compiler/build/classes | |
[javac] Compiling 289 source files to /Users/manu/projects/notbackedup/git/ceylon/ceylon-compiler/build/classes | |
[javac] /Users/manu/projects/notbackedup/git/ceylon/ceylon-compiler/src/com/redhat/ceylon/ceylondoc/CeylonDocTool.java:44: package com.redhat.ceylon.cmr.api does not exist |
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
<!-- when using a relational database --> | |
<persistence ...> | |
<persistence-unit name="users" transaction-type="RESOURCE_LOCAL"> | |
<properties> | |
<property name="javax.persistence.jdbc.driver" value="org.h2.Driver"/> | |
<property name="javax.persistence.jdbc.user" value="sa"/> | |
<property name="javax.persistence.jdbc.password" value=""/> | |
<property name="javax.persistence.jdbc.url" value="jdbc:h2:tcp://localhost/./intro-ogm"/> | |
<property name="hibernate.dialect" value="org.hibernate.dialect.H2Dialect"/> | |
<property name="hibernate.hbm2ddl.auto" value="update"/> |
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
{ | |
"code": "java.class.nonPublicPartOfAPI", | |
"old": "interface io.quarkus.annotation.processor.generate_doc.DocFormatter", | |
"new": "interface io.quarkus.annotation.processor.generate_doc.DocFormatter", | |
"justification": "ADD YOUR EXPLANATION FOR THE NECESSITY OF THIS CHANGE" | |
/* "classSimpleName": "DocFormatter", | |
"exampleUseChainInNewApi": "io.quarkus.annotation.processor.generate_doc.DocFormatter is used as parameter in method void io.quarkus.annotation.processor.generate_doc.ConfigDocElement::accept(java.io.Writer, io.quarkus.annotation.processor.generate_doc.DocFormatter) throws java.io.IOException (method void io.quarkus.annotation.processor.generate_doc.ConfigDocElement::accept(java.io.Writer, io.quarkus.annotation.processor.generate_doc.DocFormatter) throws java.io.IOException is part of the API)", | |
"package": "io.quarkus.annotation.processor.generate_doc", | |
"classQualifiedName": "io.quarkus.annotation.processor.generate_doc.DocFormatter", | |
"oldArchive": "io.quarkus:quarkus-extension-processo |
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
Book persistBook(ISBN isbn, BookInfo bi) { | |
cache(isbn, { | |
BookInfo.persist(); | |
} ); | |
} |
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
docker run --ulimit memlock=-1:-1 -it --rm=true --memory-swappiness=0 --name quarkus-demo -e POSTGRES_USER=quarkus-demo -e POSTGRES_PASSWORD=quarkus-demo -e POSTGRES_DB=quarkus-demo -p 5432:5432 postgres:10.5 | |
## use H2 instead | |
diff --git a/quarkus-workshop-super-heroes/super-heroes/infrastructure/docker-compose.yaml b/quarkus-workshop-super-heroes/super-heroes/infrastructure/docker-compose.yaml | |
index aeeeda3..40f12f4 100644 | |
--- a/quarkus-workshop-super-heroes/super-heroes/infrastructure/docker-compose.yaml | |
+++ b/quarkus-workshop-super-heroes/super-heroes/infrastructure/docker-compose.yaml | |
@@ -7,6 +7,15 @@ services: | |
- "5432:5432" | |
volumes: |
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
<!-- on persistence.xml file --> | |
<persistence xmlns="http://java.sun.com/xml/ns/persistence" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd" | |
version="2.0"> | |
<persistence-unit name="pu" transaction-type="JTA"> | |
<provider>org.hibernate.ejb.HibernatePersistence</provider> | |
<jta-data-source>java:/DefaultDS</jta-data-source> | |
<properties> |
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
[INFO] Scanning for projects... | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Reactor Build Order: | |
[INFO] | |
[INFO] JSR-380 TCK Aggregator [pom] | |
[INFO] JSR-380 TCK Test Suite [jar] | |
[INFO] JSR-380 TCK Documentation [jar] | |
[INFO] JSR-380 TCK Container Adapter [jar] | |
[INFO] JSR-380 TCK Distribution [jar] | |
[INFO] |
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
// uni | |
public interface Uni<T> { | |
static Uni<T> fromCompletionStage(CompletionStage<T> foo); | |
CompletionStage<T> subscribeToCompletionStage(); // start the execution eagerly (should it be named subscribeAndComplete) | |
U to(Class<U> clazz); // converts to whatever like Mono | |
U more(Class<U> clazz); // converts to whatever like Mono | |
... | |
// add operators | |
} |
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
#!/bin/bash | |
# Clones your existing repo and run the maven tests off this clone | |
# Tests are run on the the current branch at the time of cloning | |
# | |
# Note that you can work on the next bug while this is going on as | |
# tests are run off a cloned repo. | |
# | |
# $ build.sh | |
# runs 'maven clean install' | |
# |
NewerOlder