Skip to content

Commit

Permalink
INITIAL DB MODEL
Browse files Browse the repository at this point in the history
  • Loading branch information
FairWindCo committed Oct 12, 2015
1 parent 3a86095 commit 49af4aa
Show file tree
Hide file tree
Showing 30 changed files with 1,120 additions and 252 deletions.
75 changes: 0 additions & 75 deletions .idea/artifacts/DocumentsDB_war_exploded.xml

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 0 additions & 11 deletions .idea/libraries/Gradle__com_goldmansachs_gs_collections_5_1_0.xml

This file was deleted.

11 changes: 0 additions & 11 deletions .idea/libraries/Gradle__io_gatling_jsr166e_1_0.xml

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

10 changes: 10 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ version '1.0-SNAPSHOT'

apply plugin: 'java'
apply plugin: 'war'
//apply plugin: 'idea'
apply plugin: 'io.spring.dependency-management'
//apply plugin: 'org.akhikhl.gretty'

sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
Expand Down Expand Up @@ -54,8 +56,16 @@ buildscript {
}
dependencies {
classpath 'io.spring.gradle:dependency-management-plugin:0.5.1.RELEASE'
//classpath 'org.akhikhl.gretty:gretty:+'
}
}
/*
gretty {
port = 8080
contextPath = 'spring4'
servletContainer = 'jetty9' //tomcat7 or tomcat8
}
/**/

dependencyManagement {
imports {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public JGridRowsResponse<ContactType> getTable(HttpServletRequest request){
try {
page = Integer.parseInt(request.getParameter("page")) - 1;
rows = request.getParameter("rows") == null ? 10 : Integer.parseInt(request.getParameter("rows"));
if(request.getParameter("sidx")!=null){
if(request.getParameter("sidx")!=null && !request.getParameter("sidx").isEmpty()){
String direction=request.getParameter("sord");
pageRequest=new PageRequest(page,rows,"asc".equals(direction)? Sort.Direction.ASC: Sort.Direction.DESC,request.getParameter("sidx"));
} else {
Expand Down
Loading

0 comments on commit 49af4aa

Please sign in to comment.