ebean
ebean copied to clipboard
DDL constraint generation when table with schema
Hi,
There is a bug in Foreignkey and index ddl generation.
I have a table like this :
@Table(name = "Abonnement" ,schema="DBHABLOT8USR")
public class Abonnement extends Model{
....
}
and in the ddl i get this generation :
alter table DBHABLOT8USR.Abonnement add constraint fk_DBHABLOT8USR.Abonnement_num_1 foreign key ....
and
create index ix_DBHABLOT8USR.Abonnement_num_1 on DBHABLOT8USR.Abonnement(PRR_NUM);
the FK name and IX name are bad fk_DBHABLOT8USR.Abonnement_num_1, ix_DBHABLOT8USR.Abonnement_num_1
the schemas fk_DBHABLOT8USR and ix_DBHABLOT8USR doesn't exists...
DBHABLOT8USR. The correct generation is : fk_DBHABLOT8USR.Abonnement_num_1 ==> DHABLOT8USR.fk_Abonnement_num_1 ix_DBHABLOT8USR.Abonnement_num_1 ==> DBHABLOT8USR.ix_Abonnement_num_1
Regards
Fixed in 4.0.5