Skip to content

Instantly share code, notes, and snippets.

View jbrackett's full-sized avatar

Josh Brackett jbrackett

View GitHub Profile
@jbrackett
jbrackett / Person.java
Created February 10, 2014 22:58
Repository and Domain for spring-data-jpa tutorial
package com.example.domain;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@jbrackett
jbrackett / PersonRepositoryTest.java
Last active August 29, 2015 13:56
Test for spring-data-jpa tutorial
package com.example.repositories;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import java.util.List;
import javax.annotation.Resource;
@jbrackett
jbrackett / build.gradle
Last active April 14, 2021 11:01
Build file with task to generate Querydsl classes from SQL
configurations {
querydslsql
}
sourceSets { generated }
sourceSets.generated.java.srcDirs = ['src/main/generated']
ext {
sqlserverVersion = "1.3.1"
queryDslVersion = "3.6.1"