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
# this is not maintained, please refer to https://gist.github.com/2868365 for latest version |
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
For example, you have a part of content to be passed to different tags as callback, and you except the tag will change the content by passing arguments, as shown below: | |
bc. @lookupRole(permission: "superuser").callback(List<Role> roleList) { | |
<ul> | |
@for(Role role: roleList) { | |
<li>role.getName()</li> | |
} | |
</ul> | |
} |
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
# this is not maintained. Please refer to https://gist.github.com/2868365 for latest morphia version |
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
# Application dependencies | |
require: | |
- com.greenlaw110 -> app-base 2.1.3 | |
- com.greenlaw110 -> play-excel 1.2.3 | |
- com.greenlaw110 -> config 1.2.2 | |
- com.greenlaw110 -> betterlogs 1.2j | |
- com.greenlaw110 -> aaa 2.1 | |
- com.greenlaw110 -> play-rythm 1.0.1-b3 | |
- com.greenlaw110 -> morphia 1.5.0a |
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
sudo netstat -anp|grep <port-number> |
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
# ---------------- | |
# Privileges | |
# ---------------- | |
superuser: | |
type: p | |
level: 9999 | |
# --------------- | |
# Rights | |
# --------------- |
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 models; | |
import com.google.code.morphia.annotations.Entity; | |
import play.modules.morphia.Model; | |
import java.util.List; | |
/** | |
* An album could store multiple photos persistent in the gridfs | |
*/ |
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
grammar RL; | |
report | |
: REPORT ('(' REPORT_NAME ')')? BEGIN END | |
; | |
REPORT : 'Report'; | |
BEGIN : 'Begin'; | |
END : 'End'; | |
NAME : LETTER (LETTER | DIGIT | '_')*; |
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
@extends(main) | |
@if (isMobile()) { | |
@layout.mobile() | |
} else { | |
@layout.desktop() | |
} |
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
play.exceptions.JavaExecutionException: java.lang.RuntimeException: java.lang.ClassCastException: java.lang.String cannot be cast to com.mongodb.DBObject | |
at play.mvc.ActionInvoker.invoke(ActionInvoker.java:237) | |
at Invocation.HTTP Request(Play!) | |
Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.ClassCastException: java.lang.String cannot be cast to com.mongodb.DBObject | |
at com.google.code.morphia.mapping.Mapper.fromDb(Mapper.java:487) | |
at com.google.code.morphia.mapping.Mapper.fromDBObject(Mapper.java:267) | |
at com.google.code.morphia.query.MorphiaIterator.convertItem(MorphiaIterator.java:66) | |
at com.google.code.morphia.query.MorphiaIterator.processItem(MorphiaIterator.java:53) | |
at com.google.code.morphia.query.MorphiaIterator.next(MorphiaIterator.java:48) | |
at com.google.code.morphia.query.QueryImpl.get(QueryImpl.java:365) |
OlderNewer