question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question: how to use @Join for multi level?

See original GitHub issue

Let’s say I have Country / State / City entities, how do I use @Join to fetch the second level?

I tried something like:

@Join(“state.city”) 
Optional<Country> findByName(String name)

and it didn’t work. Is it possible?

Thanks in advance.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
graemerochercommented, Sep 5, 2019

How would this be different to?:

@Join("state")
@Join("state.city")
2reactions
graemerochercommented, Jul 20, 2019

Yeah that is in the todo list will get it working shortly. Thanks for the feedback

Read more comments on GitHub >

github_iconTop Results From Across the Web

SQL multiple joins for beginners with examples - SQLShack
Multiple joins can be described as follows; multiple join is a query that contains the same or different join types, which are used...
Read more >
SQL join on multiple levels - Stack Overflow
Unit_No = Units.Unit_no order by reg.region_no asc. if there is null in one table, the record won't appear ... to handle use inner...
Read more >
An Illustrated Guide to Multiple Join | LearnSQL.com
In this final article of the series, we show you how to create SQL queries that match data from multiple tables using one...
Read more >
Multiple Joins in SQL - GeeksforGeeks
For this article we will first create a database geeks and then create three tables in it and then run our queries on...
Read more >
SQL Joins Tricky Interview Questions
If we look the first interview question, SQL query is a Inner Join between the 2 tables. Before we going to discuss the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found