git config --global alias.co checkout
git config --global alias.ci commit
git config --global alias.st status
git config --global alias.br branch
git config --global alias.hist "log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short"
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
DEFINE TEMP-TABLE ttOrderInfo NO-UNDO serialize-name "orderList" | |
FIELD mapReference AS INTEGER | |
FIELD customerNumber AS CHARACTER | |
INDEX byMapReference IS PRIMARY mapReference. | |
DEFINE TEMP-TABLE ttMachineinfo NO-UNDO serialize-name "machineInfo" | |
FIELD mapReference AS INTEGER SERIALIZE-HIDDEN | |
FIELD category AS CHARACTER | |
FIELD subcategory AS CHARACTER | |
INDEX byMapReference IS PRIMARY mapReference. |
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 com.tvh.assetmanagement.common.validation; | |
public abstract class StringValidation { | |
public static String normalize(final String input){ | |
if(input == null){ | |
return null; | |
} | |
final String str = input.trim(); |
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 org.junit.Before; | |
import org.junit.Test; | |
import static org.assertj.core.api.Assertions.assertThat; | |
public class MemberEqualsHashcodeTest { | |
private Member a, b; | |
@Before |
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 org.springframework.stereotype.Component; | |
import org.springframework.web.servlet.HandlerInterceptor; | |
import org.springframework.web.servlet.ModelAndView; | |
import javax.servlet.http.HttpServletRequest; | |
import javax.servlet.http.HttpServletResponse; | |
@Component | |
public class ProjectUpdatableInterceptor implements HandlerInterceptor { |
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 org.springframework.context.i18n.LocaleContextHolder; | |
import java.util.ArrayList; | |
import java.util.HashMap; | |
import java.util.List; | |
import java.util.Locale; | |
import java.util.Map; | |
public class SupportedLocales { |
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 com.tvh.assetmanagement.common.SupportedLocales; | |
import java.util.HashMap; | |
import java.util.Locale; | |
import java.util.Map; | |
public enum EngineType { | |
THERMAL("Thermal", "Thermisch"), | |
ELECTRICAL("Electrical", "Elektrisch"), |
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
/** | |
map: | |
migration: | |
enabled: true | |
*/ | |
import org.springframework.boot.context.properties.ConfigurationProperties; | |
@ConfigurationProperties("map.migration") |
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
/** | |
@Column | |
@Convert(converter = LocalDateConverter.class) | |
private LocalDate dateOfBirth; | |
*/ | |
import javax.persistence.AttributeConverter; |
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
/** | |
Use this in persistent model | |
@Column | |
@NotNull | |
@Convert(converter = LocaleConverter.class) | |
private Locale language; | |
*/ |