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.bmchild.pocrestclient; | |
| import java.io.BufferedReader; | |
| import java.io.IOException; | |
| import java.io.InputStreamReader; | |
| import java.net.HttpURLConnection; | |
| import java.util.LinkedHashMap; | |
| import java.util.Map; | |
| import java.util.logging.Logger; |
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
| 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 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
| public class PolicyAgreementBean { | |
| @Valid | |
| private List<PolicyAgreementUserAnswerBean> beans; | |
| public List<PolicyAgreementUserAnswerBean> getBeans() { | |
| return beans; | |
| } | |
| public void setBeans(List<PolicyAgreementUserAnswerBean> beans) { |
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
| { | |
| "beans":[ | |
| { | |
| "agreemendId":1, | |
| "answerId":2 | |
| } | |
| ] | |
| } |
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
| /** | |
| * creates a list of lists where each list.size() <= <code>length</code> | |
| * @param list | |
| * @param length | |
| * @return | |
| */ | |
| public static <T> List<List<T>> split(List<T> list, final int length) { | |
| List<List<T>> parts = new ArrayList<List<T>>(); | |
| final int size = list.size(); | |
| for (int i = 0; i < size; i += length) { |
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
| /* | |
| * Business logic service | |
| */ | |
| public class MyBusinessService { | |
| private SomeService someService; | |
| public void executeSomeLogic(MyLogicOperator input) { | |
| Something thing = new Something(); |
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
| /* | |
| * Business logic service | |
| */ | |
| public class MyBusinessService { | |
| private SomeService someService; | |
| public void executeSomeLogic(String input) { | |
| Something thing = new Something(); |
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
| /* | |
| * Business Logic Test | |
| */ | |
| @RunWith(MockitoJUnitRunner.class) | |
| public class MyBusinessServiceTest { | |
| @Mock | |
| private AnotherService anotherService; | |
| @Mock |
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
| /* | |
| * Business logic service | |
| */ | |
| public class MyBusinessService { | |
| private SomeService someService; | |
| private AnotherService anotherService; | |
| public void executeSomeLogic(String input) { | |
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
| /* | |
| * Business logic service | |
| */ | |
| public class MyBusinessService { | |
| private DateService dateService; | |
| private SomeService someService; | |
| public void executeSomeLogic(String dateString) { | |