jhipster.github.io icon indicating copy to clipboard operation
jhipster.github.io copied to clipboard

Update relationships.md

Open Lalithkumarponnambalam opened this issue 1 year ago β€’ 7 comments

Update relationships.md content

The following issue will be rectified:

  • jhipster/generator-jhipster/issues/25584

I have referenced the "joint fields" from the JHipster Pro documentation. The correct link for the documentation is:

Lalithkumarponnambalam avatar Mar 21 '24 09:03 Lalithkumarponnambalam

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Mar 21 '24 09:03 CLAassistant

Deploy Preview for jhipster-site ready!

Name Link
Latest commit 04ce7e90b6edce573e63c02de563456cc33f99ff
Latest deploy log https://app.netlify.com/sites/jhipster-site/deploys/65fc01e89e1e600008a135a3
Deploy Preview https://deploy-preview-1338--jhipster-site.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

netlify[bot] avatar Mar 21 '24 09:03 netlify[bot]

Is this correct? To me the described syntax rather means "show name in any referencing attribute, like dropdown or list view link", the join will still always be executed based on the foreign key relationship afaik.

OmarHawk avatar Mar 26 '24 22:03 OmarHawk

@OmarHawk yes this is correct. In the JHipster Pro Documentation, there is an explanation of join fields in relationships, which can be found at the following link: JHipster Pro Documentation - Relationships with Joint Fields.

Lalithkumarponnambalam avatar Apr 03 '24 05:04 Lalithkumarponnambalam

Still not convinced. We are using the syntax and it works as I did describe. See also the syntax description here: https://www.jhipster.tech/jdl/relationships#syntax ---> <display field>

Also the .pro site looks kind of unofficial and rather outdated.

OmarHawk avatar Apr 03 '24 05:04 OmarHawk

That’s not correct.

relationship OneToOne {
  A{b(name)} to B{a(name)}
}

means that when showing A, B will have b.name field as label (instead of b.id) in the frontend. Same for B. joins always use ids.

mshima avatar Jun 26 '24 01:06 mshima

We updated the website with a new design. Can you please update this issue accordingly?

mraible avatar Aug 29 '24 14:08 mraible

Closing due to lack of response.

mraible avatar Oct 29 '24 03:10 mraible