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
contenu du test gist |
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
public User findByUserID(Integer ID) throws Exception { | |
EntityManager em = OpenJPAUtils.openEntityManager(); | |
User result = em.find(User.class, ID); | |
HashSet<Contact> contacts = (HashSet<Contact>)getAllContactByUserID(result.getId()); | |
if (contacts != null) { | |
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
<div class="panel panel-default"> | |
<div class="panel-heading text-center">Liste de mes challenges !</div> | |
<div class="panel-body"> | |
<div class="col-xs-12 col-sm-12 col-md-10 col-md-offset-1 col-lg-10 col-lg-offset-1"> | |
<br /> | |
<ul class="list-group"> | |
<% | |
for(Challenge challenge : challenges){ |
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
ALTER TABLE myTABLE AUTO_INCREMENT = 1; |
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
Commande pour créer un répertoire maven de gestion de librairie en local : | |
MacBook-Pro-de-olivier:/ oliviermarin$ mvn install:install-file | |
-Dfile=/Users/oliviermarin/Desktop/marmot-java-dependencies/marmot3-framework.jar | |
-DgroupId=edf-marmot3-framework | |
-DartifactId=edf-marmot3-framework | |
-Dversion=1.0 | |
-Dpackaging=jar | |
Résultat de l’exécution de la commande : |
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
ALTER TABLE t1 | |
ADD COLUMN t1_fk INTEGER DEFAULT 1, | |
ADD FOREIGN KEY(t1_fk) REFERENCES t2(t2_pk); |
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
xhtml | Face : | |
<p:row> | |
<p:column> | |
<p:outputLabel for="zone-geographique" | |
value="#{messages['operationimmobiliere.zone.geographique']} : " /> | |
</p:column> | |
<p:column> | |
<p:selectOneRadio id="zone-geographique" | |
value="#{operationImmobiliereFace.codeZoneGeographique}"> |
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
INSERT INTO public.personne( | |
id, | |
age, | |
prenom, | |
nom) | |
SELECT | |
id, | |
age, | |
prenom, // Donnees précédante | |
'Dupont' // modification valeur |
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
DO $$ | |
DECLARE | |
counter integer := 0; | |
BEGIN | |
FOR i IN 1..10 | |
LOOP | |
counter := couter + i; | |
END LOOP; | |
END; | |
$$ LANGUAGE plpgsql; |
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
RAISE INFO 'param : %', param-value; |
OlderNewer