Hi AppFuseFans ...

Please, if some one have this working fine, send me POJO, actions and
htmlxs.
I am triying to make a CRUD using GenericDao with two tables master/details
related
but I have erros when I am going to save the maped Entity.
With entity owner no have problems to save and display data
I am using the AppFuse 2.0.1
The comand I am using is

*mvn appfuse:gen-model
mvn appfuse:gen -Dentity=Persona
mvn appfuse:gen -Dentity=Comuna*

The tables in mysql are
*DROP TABLE IF EXISTS persona;
DROP TABLE IF EXISTS comuna;

CREATE TABLE comuna (
       comid BIGINT NOT NULL AUTO_INCREMENT
     , com_nombre VARCHAR(20)
     , PRIMARY KEY (comid)
);

CREATE TABLE persona (
       perid BIGINT NOT NULL AUTO_INCREMENT
     , per_nombre VARCHAR(50)
     , comid BIGINT NOT NULL
     , PRIMARY KEY (perid)
     , INDEX (comid)
     , CONSTRAINT FK_persona_1 FOREIGN KEY (comid)
                  REFERENCES comuna (comid)
);*



-- 
Leonardo Castaño D.

Reply via email to