Error: conflict between versions of a repeatedly inherited feature.
What to do: list one of the versions in exactly one Select clause.
Class: PK_DB_ENTITY
In current class: primary_key_constraint: CONSTRAINT
In current class: primary_key_constraint_join: CONSTRAINT
deferred class
CONSTRAINTABLE
feature -- Status report
constraint: CONSTRAINT
deferred
end
end
class
PK_DB_ENTITY
inherit
DB_ENTITY
redefine
set_random_for_update,
set_random_for_insert,
fields_mapping,
set_from_db_service,
valid_for_insert,
valid_for_delete,
valid_for_update
end
CONSTRAINTABLE
rename
constraint as primary_key_constraint
undefine
default_create,
out
end
CONSTRAINTABLE
rename
constraint as primary_key_constraint_join
undefine
default_create,
out
end
feature -- Status report
primary_key_constraint: CONSTRAINT
require else
valid_primary_key (primary_key)
do
create {FIELD_CONSTRAINT} Result.make (table_name, Primary_key_db_column_name, {CONSTRAINT}.Equal_operator, primary_key.out)
end
primary_key_constraint_join: CONSTRAINT
require else
valid_primary_key (primary_key)
do
create {FIELD_CONSTRAINT} Result.make (table_name + "_join", Primary_key_db_column_name, {CONSTRAINT}.Equal_operator, primary_key.out)
end
--
You received this message because you are subscribed to the Google Groups "Eiffel Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to eiffel-users...@googlegroups.com.
Visit this group at https://groups.google.com/group/eiffel-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/eiffel-users/dae6b1c9-09f0-483f-8256-26b71a549adb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/eiffel-users/CABuDMNPoWHb9vunwHmc-rOBe7-rvXm75yuLH2bKYV4raj7jz9w%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/eiffel-users/CAB%2BbLA9Z_t%3DW6VSsySqH7XSRLzTYdnDamVNE7JhJKDMJyiMYrw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/eiffel-users/CABuDMNOGaPfrA%2BB_JF4CF5_4Z-qqSBFixYFL4zWDq4VCkCO0ew%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/eiffel-users/20190625132907.cf48dd763fcaf5d42559c6c92f6fc53b.2908633d96.wbe%40email25.godaddy.com.
Gachoud Philippe <ph.ga...@gmail.com>:
CONSTRAINTABLE
rename
constraint as primary_key_constraint
select
primary_key_constraint
end
CONSTRAINTABLE
rename
constraint as primary_key_constraint_join
end
--
You received this message because you are subscribed to the Google Groups "Eiffel Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to eiffel-users...@googlegroups.com.
Visit this group at https://groups.google.com/group/eiffel-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/eiffel-users/1561531814.613682844%40f520.i.mail.ru.
CONSTRAINTABLE
rename
constraint as primary_key_constraint
select
primary_key_constraint
end
CONSTRAINTABLE
rename
constraint as primary_key_constraint_join
end
--
You received this message because you are subscribed to the Google Groups "Eiffel Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to eiffel-users...@googlegroups.com.
Visit this group at https://groups.google.com/group/eiffel-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/eiffel-users/fcdf2318-eddb-4552-8810-1a0a05612925%40googlegroups.com.
But for me in the semantic, why do I have to select one of 2 inherited features if it has been renamed?
test
local
db: PK_DB_ENTITY
constraintable: CONSTRAINTABLE
constraint: CONSTRAINT
do
create db.make
constraintable := db
constraint := constraintable.constraint -- result depends on which constraint was selected
end
--
You received this message because you are subscribed to the Google Groups "Eiffel Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to eiffel-users...@googlegroups.com.
Visit this group at https://groups.google.com/group/eiffel-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/eiffel-users/a229883d-bd31-4a4a-b62e-29d9fa4e0096%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.