Portlet programming with Liferay

Liferay is a portlet server, so you can embed multiple mini-Websites in a larger one (the portal). Similarities A portlet webapp has a web.xml that contains no differences with the conventionnal webapp ones:   <xml version="1.0" encoding="UTF-8"/> <web-app id="WebApp_1" version="2.4"Read more…

Share Button

Expérimentations Virgo – Tester JPA

Pour tester JPA, rien de plus simple, on va logger l’ajout et la récupération d’un User. Créer un nouveau module Maven, puis créer la classe suivante: package net.osgiliath.gamecenter.dao.itest;   import javax.annotation.PostConstruct; import javax.annotation.Resource;   import lombok.extern.slf4j.Slf4j;   import net.osgiliath.dao.UserDao; importRead more…

Share Button

Expérimentations Virgo – Le Module JPA

Il ne reste plus qu’à coder. Après avoir crée votre module fils, ajouter le plugin maven Lombok afin de “délombokiser” votre code à la compilation: <plugin> <groupId>org.projectlombok</groupId> <artifactId>lombok-maven-plugin</artifactId> </plugin>   <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <scope>provided</scope> </dependency><plugin> <groupId>org.projectlombok</groupId> <artifactId>lombok-maven-plugin</artifactId> </plugin> <dependency> <groupId>org.projectlombok</groupId>Read more…

Share Button

Expérimentations Virgo – Environnement de dev

Afin de faire fonctionner a bien ce projet, il faut mettre en place l’environnement de dev. Un serveur Virgo tout frais (3.0.5.RELEASE). Un Eclipse Juno neuf aussi, avec les plugins suivant: * Lombok (facilitation de programmation des Objets du modèle)Read more…

Share Button

Orthank JPA-Flex getting started

Is your Eclipse ready? (see requirements : ). So you’ve done the big part of the job 😉 Now boost your Eclipse, by modifying eclipse.ini: –launcher.XXMaxPermSize 512M -showsplash org.eclipse.platform –launcher.XXMaxPermSize 512m –launcher.defaultAction openFile -vmargs -Dosgi.requiredJavaVersion=1.5 -Xms128m -Xmx1024m The first thingRead more…

Share Button

Orthank-JPA-Flex archetype: CRUD made easy!

Orthank is a powerful Maven Java-Flex archetype embedding MDA CRUD generation mechanism based on the most solid open-source frameworks. You can have a working example here. You can also want to see reports Archetype specs and features *: Persistence basedRead more…

Share Button

Another stack: OSGI development

Orthank new version is destined to replace the old archetype. In a near future, it will be a full stacked framework. This framework will embed crucial open source frameworks that will help you to make your dream comes true. Maven,Read more…

Share Button

Modeling tutos 8: Model to Model with Java

La stratégie adoptée afin de répondre à la problématique de sourcing de données passe par un mécanisme de conversion de modèle to modèle.   En effet, dans un premier temps, vous créerez un meta-modèle associé à votre source. Vous remplirezRead more…

Share Button

A nice Java Flex Stack

The first thing to do when setting up a project is to know what you gonna do with it. Personnally, I want to do the most complete project embedding full of high added-value frameworks. My project will at its endRead more…

Share Button

Database persistence with JPA

JPA means Java Persistence Api, it makes data saving possible in an easy way. In Java, You just have to annotate your domain classes with some annotations in order to make it works. Example: @Entity public class Book { privateRead more…

Share Button