Re: MinuteProject introduction

54 views
Skip to first unread message

Florian Adler

unread,
Jun 29, 2015, 9:20:18 AM6/29/15
to Gabriel Rendueles Bonera, minute...@googlegroups.com
Hello Gabriel,

Thank you for trying minuteproject, here are further information for the generation of OX artifacts.
The link mention points to a old version of the MP 4 Openxava generation. Please use https://minuteproject.wikispaces.com/page/view/OpenXava in this version the point 1 has been corrected.

To run minuteproject generation you can either use the console or via a configuration file.
In your case you choose a configuration xml file which is fine, since you can run the same configuration multiple time via command line when your model evolve.

For your first question
To create such a file you can get some inspiration of the generation shipped in the demo directory of Minuteproject. (not openxava directory)

So after downloading and installing Minuteproject (MP) create an xml file into <MP_HOME>/demo/config.
Ex: copy and rename mp-config-openxava-last-features.xml to my-first-mp-to-ox.xml

In this file (my-first-mp-to-ox.xml) change the connection pool parameter (to point to your database).
(Optionally add some enrichment such as naming convention, aliasing...)

For your second question

You can run the application by the command line
model-generation.cmd my-first-mp-to-ox.xml

So if you want to you can create a script (this is what has been suggested).
Ex: create a file my-first-mp-to-ox.cmd with one line
call model-generation.cmd my-first-mp-to-ox.xml

---
If you are using Openxava 5.3 there is a patch I made in MP 0.9.5 (http://minuteproject.blogspot.be/2015/06/openxava-53-minuteproject-093-ehcache.html)

In short add the property <property name="openxava-disable-sdd" value="true" /> inside the node <targets>

I hope it helps,

Best regards,

Florian.

2015-06-29 14:25 GMT+02:00 Gabriel Rendueles Bonera <grend...@gmail.com>:
Good afternoon.
I'm trying to set MinuteProject and have a duda.He followed the introduction (https://minuteproject.wikispaces.com/page/view/OpenXava/550026222), and there are two things that I need help. The first is that you need to create an XML file in the demo directory within the installation of OpenXava. I downloaded version 5.3 and does not have this directory. Would you believe me ?. My other question is when you say: On <MP_HOME> / demo / demo copy config-last-features-openxava.cmd into <myModel> (sh / cmd) and edit the last line accordingly..
% JAVA_HOME% \ bin \ java "% CP% net.sf.minuteProject.application.ModelViewGenerator <mp-config-filename> .xml.
I open demo-last-features-openxava.cmd and has only one line, this specifically: call generation.cmd model-mp-config-openxava-last-Features.xml. What to write to that file exactly? Thank you very much.
A greeting.
Gabriel Rendueles


Florian Adler

unread,
Jun 30, 2015, 5:56:33 PM6/30/15
to Gabriel Rendueles Bonera, minute...@googlegroups.com
Ola Gabriel,

Entiendo espanol tambien, aunque no lo escribe bien. Si usted lo quiere, se puede preguntar en su idioma.

Por lo que he visto cuanto tiene OX 5.3 y MP 0.9.5 no es my lejo de tener una aplicacion en OX sin escribir una linea de codigo.

MP hace todas las etapas para el.

Para empezar debe assegurarse que tienes java y ant en 'command line', es para que los scripts functionan.

Images intégrées 3

El mas facil es generar con MP console (una pequena aplicacion)
1) Generacion

Abre en MP 0.9.5 la aplicacion que se situa en <MP_HOME>/bin/start-console

En 'Model access' entra los datos para connectar a la DB

En 'Common configuration' elige a su 'root package' and nombre del modelo.

En 'target technology' elige a OpenXava

Images intégrées 1

Por defecto se va a generar en ../output/first/OpenXava

Si todo passa bien el codigo generado se situa en <MP_HOME>/output/first/Openxava.

2) hace lo restante

Abre a 'prompt', pone variable de entorno OX_HOME y MP_HOME

Y despues executa 'build-First.cmd'.

 Images intégrées 2

El nombre 'First' viene del nombre del model.

Si todo functiona bien va a:
  •  tener una aplication en OpenXava eclipse workspace
  • configurar a tomcat (connection pool)
  • construir el aplication
  • desplegar el apli sobre tomcat
  • abrir el 'browser' para ver el resultado.

Con OX 5.3 y MP (codigo generado con la consola) tiene una pequena manipulacion que hacer con la config (hibernate-ehcache). http://minuteproject.blogspot.be/2015/06/openxava-53-minuteproject-093-ehcache.html

Si se logra a este etapa puedo explicar lo que hacer par utilisar MP con la 'command line'.


Best regards,


Florian.



2015-06-30 9:10 GMT+02:00 Gabriel Rendueles Bonera <grend...@gmail.com>:
Good morning and thank you very much for the reply.
I tried to, but I'm doing something wrong. First apologize for my low
level of English, but I hope you understand. I have a simple database with three tables,
and from it I want to build the application with MP and OX. I downloaded and configured OX 5.3 and
I downloaded 0.9.5 MP, and I returned to the initial version, ie without touching anything, just after
extracting the zip. From this, would you be so kind to explain everything that I have to do
to build the application ?. Or if not all, most, or tell me where is well explained, and if I need
a tool, patch, plug-in or something else. Many thanks again for the help, I hope
MP you serve me for what I'm developing, and then donate some money, that you deserve it
because the project seems fantastic.
Best regards.
Gabriel Rendueles.
Reply all
Reply to author
Forward
0 new messages