design « Relationship « JPA Q&A





1. Add (external) relationship (tagging) to existing Hibernate entities    stackoverflow.com

I need to add a new many-to-many relationship to an existing Hibernate entity. I do not want to touch the original Hibernate entity bean or its configuration. What I am adding is a ...

2. JPA - Entity design problem    stackoverflow.com

I am developing a Java Desktop Application and using JPA for persistence. I have a problem mentioned below: I have two entities:

  • Country
  • City
Country has the following attribute:
  • CountryName (PK)
City has the following attribute:
  • CityName
Now as ...

3. Need help for one to many relationship design    stackoverflow.com

I have an application form and a library of questions, one application form may contain one or more questions. When user selects a question from the library and adds the question ...

4. How to implement a 3 Many-to-Many relationship with Hibernate?    stackoverflow.com

I'm not 100% sure this is only a Hibernate issue as this might be a more abstract decision but I'll give it a try.
Since the problem description is a bit lengthy ...

5. JPA multi-tier relationship    stackoverflow.com

I have a problem where I am stuck :(. I have to build a relationship of a relationship( strange !). For example, I have a relation where one entity A can ...

6. Hibernate Criteria One-to-Many Relationship    stackoverflow.com

I have two entities: Dealers and Makes. Dealers have multiple makes.I am able to insert the records as a one-to-many relationship between these two entities. However, I am not able to retrieve ...

7. What table structure to use (hibernate)    stackoverflow.com

I hava two entities: PhisicalPerson (PP), JuredicalPerson (JP). And I want to create Phone object. JP has many phones and PP has many phones (one to many relation). So in Phone ...