Skip to content

Instantly share code, notes, and snippets.

Streaming data changes, one at a time.

Gunnar Morling gunnarmorling

Streaming data changes, one at a time.
View GitHub Profile
public class CallerProvider extends SecurityManager {
public Class<?> getCallerClass() {
return getClassContext()[2];
View gist:8bd6d5b4569eaa923cbe
# Run complete. Total time: 00:00:20
Benchmark (url) Mode Samples Score Error Units
o.h.v.URLConstraintBenchmark.measureValidationUsingRegExp ss 300 580,450 ± 100,057 us
o.h.v.URLConstraintBenchmark.measureValidationUsingRegExp ss 300 575,237 ± 99,833 us
o.h.v.URLConstraintBenchmark.measureValidationUsingRegExp http://例子.测试 ss 300 454,633 ± 50,617 us
o.h.v.URLConstraintBenchmark.measureValidationUsingRegExp http//foo/ ss 300 181,290 ± 15,749 us
o.h.v.URLConstraintBenchmark.measureValidationUsingRegExp ///a ss 300 86,680 ± 17,834 us
o.h.v.URLConstraintBenchmark.measureValidationUsingRegExp :// should fail ss 300 80,807 ± 11,059 us
View gist:ba193caecb7d5cdbd0a4
javax.persistence.PersistenceException: org.hibernate.engine.transaction.jta.platform.spi.JtaPlatformException: Could not obtain JBoss Transactions transaction manager instance
at org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(
at org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(
at org.hibernate.jpa.spi.AbstractEntityManagerImpl.throwPersistenceException(
at org.hibernate.jpa.internal.EntityManagerImpl.isOpen(
at org.hibernate.jpa.internal.EntityManagerImpl.checkOpen(
at org.hibernate.jpa.internal.EntityManagerImpl.checkOpen(
at org.hibernate.jpa.internal.EntityManagerImpl.getSession(
at org.hibernate.jpa.spi.AbstractEntityManagerImpl.setDefaultProperties(
at org.hibernate.jpa.spi.AbstractEntityManagerImpl.postInit(AbstractEntityManagerIm
File[] files = Maven.resolver()
.resolve( "org.apache.avro:avro:jar:1.7.6" )
System.out.println( Arrays.toString( files ) );
gunnarmorling / UC-1
Last active Aug 29, 2015
OGM-465 Error handling SPI
View UC-1
// UC-1: As a user of OGM, upon an exception during flush(), I want to log all operations applied so far and abort the
// processing of the flush cycle
View gradle.log
➜ hibernate-orm git:(HHH-9708) ✗ ./gradlew clean compileJava
:buildSrc:compileJava UP-TO-DATE
:buildSrc:compileGroovy UP-TO-DATE
:buildSrc:processResources UP-TO-DATE
:buildSrc:classes UP-TO-DATE
:buildSrc:jar UP-TO-DATE
:buildSrc:assemble UP-TO-DATE
:buildSrc:compileTestJava UP-TO-DATE
:buildSrc:compileTestGroovy UP-TO-DATE
:buildSrc:processTestResources UP-TO-DATE
gunnarmorling / github_pr_branch_links.user.js
Last active Aug 29, 2015
GreaseMonkey script for rendering source and target branches of GitHub PRs as links
View github_pr_branch_links.user.js
@Field(name = "id_forNumericSort", store=Store.NO, index=Index.NO)
public Integer getId() {
return id;
public String getLastname() {
return lastname;
public class PointOfInterest {
@Field(name = "myId")
private byte id;