23 mayo 2009

importar proyectos taylor a eclipse

crear nuevo workspace

import -> maven projects from scm

Seleccionar el directorio padre de todos los proyectos (no el master). El plugin buscará todos los pom.xml en los subdiretorios y creará los proyectos

por ejemplo para el proyecto taylor-tracker-1.2.0:

http://taylor.svn.sourceforge.net/svnroot/taylor/applications/branches/taylor-tracker-1.2.0

Generar DDL con maven2

En el proyecto de taylor-tracker que viene en el fichero taylor-tracker-jboss-bundle-1.2.0.zip, en la carpeta:

jboss-4.2.0.GA\server\all\deploy\taylor-tracker-app-1.2.0.ear\taylor-tracker-jpa-1.2.0.jar\META-INF\maven\taylor-tracker\taylor-tracker-jpa

está el pom.xml del artefacto. En este fichero hay un comentario que nos puede servir para facilitar la generación de la DDL a partir del proyecto jpa generado por el modelo:



create the hbm2ddl.properties file with your dialect:
hibernate.dialect=org.hibernate.dialect.Oracle9Dialect

el fichero hay que crearlo en src/test/resources/hbm2ddl.properties


generará el fichero en hibernate3/sql/schema.sql

then run: mvn hibernate3:hbm2ddl


19 mayo 2009

another UML tool

UML tool

http://topcased-mm.gforge.enseeiht.fr/website/modeling/uml/index.html

updatesite: http://topcased-mm.gforge.enseeiht.fr/release/update-site

puntos interesantes en seam_reference-2.1.2.CR1.pdf

Sets the character encoding of submitted form data.

This filter is not installed by default and requires an entry in components.xml to enable it:


<web:character-encoding-filter encoding="UTF-16" override-client="true" url-pattern="*.seam"/>




Transactions

Finally, let's talk about transactions. In an EJB3 environment, we recommend the use of a special built-in component for transaction management, that is fully aware of container transactions, and can correctly process transaction success events registered with the Events component. If you don't add this line to your components.xml file, Seam won't know when container-managed transactions end:

<transaction:ejb-transaction/>