So here is the native query like:

```
select p.my_t_id from  tl t
inner join p p 
on p.id=t.p
where t.id=1

```

Entity structure

```
@Entity
class Tl{
 private Long p;
}

@Entity
class P{
      Long id;
      MyObjClass obj;
}

@Entity
class MyObjClass{
  Long myTId;
}

```

I am not able to figure out its `JPA` query..