This file contains 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
{ | |
"beans":[ | |
{ | |
"agreemendId":1, | |
"answerId":2 | |
} | |
] | |
} |
This file contains 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
public class PolicyAgreementBean { | |
@Valid | |
private List<PolicyAgreementUserAnswerBean> beans; | |
public List<PolicyAgreementUserAnswerBean> getBeans() { | |
return beans; | |
} | |
public void setBeans(List<PolicyAgreementUserAnswerBean> beans) { |
This file contains 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
SELECT | |
sysobjects.name AS trigger_name | |
,USER_NAME(sysobjects.uid) AS trigger_owner | |
,s.name AS table_schema | |
,OBJECT_NAME(parent_obj) AS table_name | |
,OBJECTPROPERTY( id, 'ExecIsUpdateTrigger') AS isupdate | |
,OBJECTPROPERTY( id, 'ExecIsDeleteTrigger') AS isdelete | |
,OBJECTPROPERTY( id, 'ExecIsInsertTrigger') AS isinsert | |
,OBJECTPROPERTY( id, 'ExecIsAfterTrigger') AS isafter | |
,OBJECTPROPERTY( id, 'ExecIsInsteadOfTrigger') AS isinsteadof |
This file contains 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.bmchild.controller.admin; | |
import java.lang.reflect.InvocationTargetException; | |
import java.lang.reflect.Method; | |
import org.springframework.aop.support.AopUtils; | |
import org.springframework.beans.BeansException; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.context.ApplicationContext; | |
import org.springframework.scheduling.annotation.Scheduled; |
This file contains 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
public class ParentEntity implements Serializable { | |
@Id | |
private Long Id; | |
@ElementCollection(fetch = FetchType.LAZY) | |
@CollectionTable(name = "COLLECTION_TABLE_NAME", | |
joinColumns = @JoinColumn(name = "PARENT_ENTITY_COLUMN", referencedColumnName = "COLLECTION_COLUMN")) | |
@OrderBy("collectionProperty") | |
private List<CollectionObject> myCollection; |
This file contains 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> | |
<head> | |
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script> | |
<script> | |
var NumberMap = {}; | |
NumberMap.I = 1; | |
NumberMap.V = 5; | |
NumberMap.X = 10; | |
NumberMap.L = 50; |
This file contains 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
public class PrimeFizzBuzz { | |
/** | |
* @param args | |
*/ | |
public static void main(String[] args) { | |
for(int i = 1; i < 151; i++) { | |
String print = i + " -> "; | |
if(i % 3 == 0) { |
This file contains 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.bmchild; | |
import java.util.ArrayDeque; | |
import java.util.Deque; | |
import java.util.HashMap; | |
import java.util.Map; | |
/** | |
* @author bchild | |
* |
This file contains 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
private static final Logger LOGGER = Logger.getLogger(${enclosing_type}.class.getName()); | |
${\:import(org.apache.log4j.Logger)} | |
public static final String ${field1} = "${field1}"; | |
${cursor} | |
private static final String ${field1} = "${field1}"; | |
${cursor} | |
ArgumentCaptor<${field}> captor = ArgumentCaptor.forClass(${field}.class); |
This file contains 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.bmchild.challenge.nine; | |
public class ChallengeNine { | |
private static final String PALINDROME = "Mr. Owl ate my metal worm"; | |
private static final String NOT_PALINDROME = "I am not a palindrome."; | |
public static void main(String[] args) { | |
checkPalindrome(PALINDROME); | |
checkPalindrome(NOT_PALINDROME); |
OlderNewer