join « Cascade « JPA Q&A





1. Change join table by another entity in hibernate    stackoverflow.com

I have 2 entities: Person and Phone (one-to-many relationship). I want to use JoinTable:

class Person

    @OneToMany()
    @JoinTable(name="PERSON_PHONES", 
        ...

2. Cascading joins in hibernate    forum.hibernate.org

I am new to hibernate . and i want to use joins with criteria to get the data from the table. I have four tables each is t1,t2,t3,t4. tables are related like t1.id is a foreign key in t2 , t2 .id is foreign key in t3 , t3.id is a foreign key in t4. I want to retrieve the data ...