cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrey Razumovsky (JIRA)" <>
Subject [jira] Closed: (CAY-1030) Delete rule not set on reverse engineer databse
Date Wed, 14 Jan 2009 14:50:45 GMT


Andrey Razumovsky closed CAY-1030.

       Resolution: Won't Fix
    Fix Version/s: 3.0M6
         Assignee: Andrey Razumovsky  (was: Andrus Adamchik)

Cayenne delete rule is somewhat different than DB delete rule. There was some discussion in
CAY-436 about that. 
There's no point to have e.g. two 'cascade' rules

> Delete rule not set on reverse engineer databse
> -----------------------------------------------
>                 Key: CAY-1030
>                 URL:
>             Project: Cayenne
>          Issue Type: Bug
>          Components: CayenneModeler GUI
>    Affects Versions: 3.0
>         Environment: Cayenne Modeler Win 3.0M3, MySQL 5.0.24a (InnoDB)
>            Reporter: Borut BolĨina
>            Assignee: Andrey Razumovsky
>             Fix For: 3.0M6
> When 2 tables
> create table module_template_module_parameter (module_template_id int not null, module_parameter_id
int not null, value text not null, primary key (module_template_id, module_parameter_id))
> create table module_template (id int not null, catalog_id int, module_id varchar(255)
not null, template_id int not null, control_id int, coloumn tinyint, instance int not null,
ordering int, style varchar(255), user_id varchar(32), primary key (id)) type=InnoDB;
> are created with this Cascade delete rule
> alter table module_template_module_parameter add index FKmodule_tem396421 (module_template_id),
add constraint FKmodule_tem396421 foreign key (module_template_id) references module_template
(id) on delete Cascade;
> the modeler does not set the delete rule on the created relationship.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message