Skip to content

Instantly share code, notes, and snippets.

Avatar

Marc Deschamps marcuspocus

View GitHub Profile
@marcuspocus
marcuspocus / gist:1148852
Created Aug 16, 2011
Playframework envers application.conf
View gist:1148852
# Hibernate Envers Auditing Library conf
hibernate.ejb.event.post-insert=org.hibernate.ejb.event.EJB3PostInsertEventListener,org.hibernate.envers.event.AuditEventListener
hibernate.ejb.event.post-update=org.hibernate.ejb.event.EJB3PostUpdateEventListener,org.hibernate.envers.event.AuditEventListener
hibernate.ejb.event.post-delete=org.hibernate.ejb.event.EJB3PostDeleteEventListener,org.hibernate.envers.event.AuditEventListener
hibernate.ejb.event.pre-collection-update=org.hibernate.envers.event.AuditEventListener
hibernate.ejb.event.pre-collection-remove=org.hibernate.envers.event.AuditEventListener
hibernate.ejb.event.post-collection-recreate=org.hibernate.envers.event.AuditEventListener
@marcuspocus
marcuspocus / gist:1148850
Created Aug 16, 2011
include envers in playframwork
View gist:1148850
- org.hibernate -> hibernate-envers 3.6.1.Final:
exclude:
- org.hibernate -> hibernate-tools 3.2.0.ga
- org.beanshell -> bsh 2.0b4
- freemarker -> freemarker 2.3.8
- org.hibernate -> jtidy r8-20060801
- ant -> ant 1.6.5
@marcuspocus
marcuspocus / cron.xml
Created Jul 27, 2011
Cron file example for a play application hosted on GAE
View cron.xml
<?xml version="1.0" encoding="UTF-8"?>
<cronentries>
<cron>
<url>/admin/updateStats</url>
<description>Request every 1 minutes</description>
<schedule>every 1 minutes</schedule>
<target>2</target>
</cron>
</cronentries>
@marcuspocus
marcuspocus / TextitleExtension
Created Jan 16, 2011
Une extension pour Play! Framework qui permet de faire un rendu html d'une chaine écrite en Textile.
View TextitleExtension
package ext;
import java.io.StringWriter;
import jj.play.org.eclipse.mylyn.wikitext.core.parser.MarkupParser;
import jj.play.org.eclipse.mylyn.wikitext.core.parser.builder.HtmlDocumentBuilder;
import jj.play.org.eclipse.mylyn.wikitext.textile.core.TextileLanguage;
import play.templates.JavaExtensions;
public class TextileExtension extends JavaExtensions {
You can’t perform that action at this time.