database « Relationship « JPA Q&A





1. Establisment 2 relationship from one table to one table in hibernate    stackoverflow.com

I have 2 table one table is City Table ( int id, string name) and my another table is Distance table(int id,int cityId (FK city),int neighbourId(FK ...

2. Using Hibernate/JPA without relationships and avoiding multiple DB calls    stackoverflow.com

It seems to me that when you use relationships in Hibernate/JPA that using relationships like OneToMany can have a performance boost on reads because only one database call would need to ...

3. Database view for multiple one to many relationships    stackoverflow.com

What is the best way to design a view for a Java/Hibernate Application for the following scenario: There is Entity A that has one to many relation with Entity B, Entity C ...

4. How to add a JPA relationship against legacy database    stackoverflow.com

I'm coming from a C# entity framework background and looking at JPA in a Java project so I'm hoping that what I'm facing is just a conceptual problem. I've got a legacy ...

6. Surrogate keys and database table relationships    forum.hibernate.org

Newbie Joined: Thu May 01, 2008 4:30 pm Posts: 4 Hello, I am a newbie at Hibernate so please have patience! I am using Hibernate 3.1 with Sybase ASE 15.x backend. I have a question regarding surrogate keys and its effect on table relationships. Scenario: Say I have 3 tables. tb_user: userid char(20) Pri Key, first_name char(40), last_name char40) tb_user_groups: groupid ...