Skip to content

Relationship mapping without relationship entity class #2780

Discussion options

You must be logged in to vote

If that is a true many-to-many, then modeling it with theses classes looks like an error: a field could have different orders, one for each product it is bound to.
Otherwise you may use a formula for mapping your Order column, something like formula="(select top 1 pf.Order from TB_PRODUCT_FIELD pf where pf.FieldID = ID)".

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@pedrofernandesfilho
Comment options

@fredericDelaporte
Comment options

@pedrofernandesfilho
Comment options

@fredericDelaporte
Comment options

@pedrofernandesfilho
Comment options

Answer selected by pedrofernandesfilho
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants