Skip to content

Instantly share code, notes, and snippets.

View jdubois's full-sized avatar

Julien Dubois jdubois

View GitHub Profile
@jdubois
jdubois / gist:0e00ca10bac94d9cc38f62e8fc3afbf3
Created April 20, 2020 11:43
JHipster Developers Association Individual Contributor License Agreement
### JHipster Developers Association Individual Contributor License Agreement
Thank you for your interest in contributing to open source software projects (**"Projects"**)
made available by [JHipster Developers Association](https://www.jhipster.tech/association/)
or its affiliates (the **"Association"**). This Individual Contributor License Agreement (**"CLA"**) sets out the
terms governing any source code, object code, bug fixes, configuration changes, tools, specifications,
documentation, data, materials, feedback, information or other works of authorship that you submit or
have submitted, in any form and in any manner, to the Association in respect of any of the Projects
(collectively **“Contributions”**). If you have any questions respecting this Agreement,
please contact **jhipster-developers-association@googlegroups.com**
@jdubois
jdubois / user_cql_script.cql
Created April 21, 2015 09:28
Cassandra JHipster CQL script for the User table
CREATE TABLE IF NOT EXISTS user (
id text,
login text,
password text,
firstname text,
lastname text,
email text,
activated boolean,
lang_key text,
activation_key text,
@jdubois
jdubois / CassandraFooRepository.java
Created April 21, 2015 09:15
Cassandra Foo Repository with JHipster
package com.mycompany.myapp.repository;
import com.datastax.driver.core.*;
import com.datastax.driver.mapping.Mapper;
import com.datastax.driver.mapping.MappingManager;
import com.mycompany.myapp.domain.Foo;
import org.springframework.stereotype.Repository;
import javax.annotation.PostConstruct;
import javax.inject.Inject;
@jdubois
jdubois / CassandraUserRepository.java
Last active August 29, 2015 14:19
JHipster Cassandra UserRepository
package com.mycompany.myapp.repository;
import com.datastax.driver.core.*;
import com.datastax.driver.mapping.Mapper;
import com.datastax.driver.mapping.MappingManager;
import com.mycompany.myapp.domain.User;
import org.joda.time.DateTime;
import java.util.List;
{
"relationships": [
{
"relationshipId": 1,
"relationshipName": "client",
"relationshipNameCapitalized": "Client",
"relationshipFieldName": "client",
"otherEntityName": "client",
"relationshipType": "many-to-one",
"otherEntityNameCapitalized": "Client",
@jdubois
jdubois / .jhipster.bankAccount.json
Created February 3, 2015 15:23
many-to-many relationship test
{
"relationships": [
{
"relationshipId": 1,
"otherEntityName": "client",
"relationshipType": "many-to-one",
"otherEntityNameCapitalized": "Client",
"otherEntityField": "name"
},
{
@jdubois
jdubois / gist:23b199e55b58dc2843be
Created November 30, 2014 17:36
Spring MVC vs Jersey Test plan
<?xml version="1.0" encoding="UTF-8"?>
<jmeterTestPlan version="1.2" properties="2.7" jmeter="2.12 r1636949">
<hashTree>
<TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Plan de test" enabled="true">
<stringProp name="TestPlan.comments"></stringProp>
<boolProp name="TestPlan.functional_mode">false</boolProp>
<boolProp name="TestPlan.serialize_threadgroups">false</boolProp>
<elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="Variables pré-définies" enabled="true">
<collectionProp name="Arguments.arguments"/>
</elementProp>
package com.mycompany.myapp.config.reload;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.aop.framework.Advised;
import org.springframework.aop.support.AopUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.annotation.AnnotationUtils;
import org.springframework.stereotype.Component;
package fr.ippon.tatami.service;
import fr.ippon.tatami.domain.Status;
import fr.ippon.tatami.service.dto.StatusDTO;
import fr.ippon.tatami.web.atmosphere.TatamiNotification;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.atmosphere.cpr.Broadcaster;
import org.atmosphere.cpr.BroadcasterFactory;
import org.springframework.stereotype.Service;
@jdubois
jdubois / web.xml
Created April 26, 2013 13:43
OpenSessionInViewFilter
<filter>
<filter-name>openEntityManagerFilter</filter-name>
<filter-class>
org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter
</filter-class>
<init-param>
<param-name>entityManagerFactoryBeanName</param-name>
<param-value>entityManagerFactory</param-value>
</init-param>
</filter>