Use Gradle/Liquibase to apply others' recent database changes: gradlew update
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
package us.ne.state.nsc.npacs.businessobject; | |
import org.apache.commons.lang.StringUtils; | |
import org.hibernate.annotations.Fetch; | |
import org.hibernate.annotations.FetchMode; | |
import us.ne.state.nsc.npacs.lookup.VictimizationTypeLookup; | |
import javax.persistence.*; | |
import java.util.ArrayList; | |
import java.util.List; |
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
package us.ne.state.nsc.npacs.lookupbean; | |
import org.springframework.data.jpa.repository.JpaRepository; | |
import us.ne.state.nsc.npacs.lookup.NpacsLookup; | |
import javax.faces.application.FacesMessage; | |
import javax.faces.component.UIComponent; | |
import javax.faces.context.FacesContext; | |
import javax.faces.convert.Converter; | |
import javax.faces.convert.ConverterException; |
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
<html> | |
<body> | |
... | |
<script> | |
(function() { | |
'use strict'; | |
var cb = function (cfg) { | |
angular.module('app.config', []).constant('CONFIG', cfg); | |
angular.element(document).ready(function() { | |
// instead of <html ng-app="main"> |
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
package hello; | |
import static java.util.Collections.synchronizedList; | |
import static org.apache.http.HttpStatus.SC_BAD_REQUEST; | |
import static org.apache.http.HttpStatus.SC_NOT_FOUND; | |
import static org.apache.http.HttpStatus.SC_OK; | |
import static org.apache.http.HttpStatus.SC_UNPROCESSABLE_ENTITY; | |
import static org.springframework.web.bind.annotation.RequestMethod.DELETE; | |
import static org.springframework.web.bind.annotation.RequestMethod.GET; | |
import static org.springframework.web.bind.annotation.RequestMethod.OPTIONS; |
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
package hello; | |
import org.springframework.http.HttpStatus; | |
import org.springframework.web.bind.annotation.ResponseStatus; | |
@ResponseStatus(code = HttpStatus.INTERNAL_SERVER_ERROR, reason = "There was an unexpected server exception") | |
public class InternalServerErrorException extends RuntimeException { | |
private static final long serialVersionUID = 1L; | |
} |
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
import java.util.Date; | |
public class TimeSpan { | |
private final Date start; | |
private final Date end; | |
public TimeSpan(Date start, Date end) { | |
if (start != null && end != null && end.before(start)) { | |
this.start = end; | |
this.end = start; |