This file contains hidden or 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
| interface SingleValueExtractor<I, O> { | |
| O extractValue(I input); | |
| // only invoked if invalid; Property name enough as input? | |
| Path.Node getNode(String property); | |
| } |
This file contains hidden or 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
| class ValueAndPathNode<O> { | |
| Node getPathNode(); | |
| O getValue(); | |
| } | |
| interface SingleValueExtractor<I, 0> { | |
| ValueAndPathNode<O> extractValue(I input); | |
| } | |
| interface MultiValueExtractor<I, 0> { |
This file contains hidden or 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
| // Required to make HV work on JDK 9 | |
| https://hibernate.atlassian.net/browse/HV-1049 Don't access annotations from "jdk.internal" package | |
| https://hibernate.atlassian.net/browse/HV-1048 Correctly interpret version string returned by JDK 9 | |
| // Other bug fixes we did since 5.2.2 | |
| https://hibernate.atlassian.net/browse/HV-1022 Validator.validateValue does not work for JDK-8 TYPE_USE annotations | |
| https://hibernate.atlassian.net/browse/HV-1025 Configuration streams not reusable on IBM JVM | |
| https://hibernate.atlassian.net/browse/HV-1025 Copying PathImpl results in hashCode==0 |
This file contains hidden or 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
| @Indexed | |
| public class PointOfInterest { | |
| @Id | |
| @DocumentId | |
| @Field(name = "myId") | |
| @NumericField | |
| private byte id; | |
| ... |
This file contains hidden or 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
| @Id | |
| @DocumentId | |
| @NumericField(forField="id_forNumericSort") | |
| @Field(name = "id_forNumericSort", store=Store.NO, index=Index.NO) | |
| public Integer getId() { | |
| return id; | |
| } |
This file contains hidden or 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
| @Field(analyzed=Analyze.NO) | |
| @SortField | |
| public String getLastname() { | |
| return lastname; | |
| } |
This file contains hidden or 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
| // Copyright © 2015 Gunnar Morling | |
| // This work is free. You can redistribute it and/or modify it under the | |
| // terms of the Do What The Fuck You Want To Public License, Version 2, | |
| // as published by Sam Hocevar. See http://www.wtfpl.net/ for more details. | |
| // ==UserScript== | |
| // @name GitHub PR branch links | |
| // @description Renders the source and target branches of GitHub pull requests as links | |
| // @namespace http://gunnarmorling.de | |
| // @include https://github.com/* |
This file contains hidden or 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
| ➜ 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 |
This file contains hidden or 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
| // 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 |
This file contains hidden or 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
| File[] files = Maven.resolver() | |
| .resolve( "org.apache.avro:avro:jar:1.7.6" ) | |
| .withTransitivity() | |
| .asFile(); | |
| System.out.println( Arrays.toString( files ) ); |