property « Association « JPA Q&A





1. HowTo ? : many-to-many association with one property    forum.hibernate.org

I'd like to know how to map a many-to-many association with one property. For example we have the two tables A and B, and there is a many-to-many association between these two tables that gives us a new table called AB. In AB there is the primary key from A and from B. And we also find one property in this ...

2. class 'where' ignored resolving association via property-ref    forum.hibernate.org

Regular Joined: Wed Aug 25, 2004 6:23 am Posts: 91 Firstly can I just say what an awesome tool Hibernate is - it's saved us a huge amount of work! I'm trying to map a legacy database using Hibernate. One of the problems that I just can't seem to solve is that a class 'where' clause seems to be ignored when ...

3. Using 'or' between property and associations in Criteria..    forum.hibernate.org

Hi, I have a entity with some properties like title and description and a many-to-many association with keywords. I want to do a criteria that returns all rows where 'xyz' is in the title or the description or 'xyz' is a keyword. I can easily do 'and' as below but not 'or'.. Ideas? Keyword keyword = keywordDAO.findKeywordByName(token, session); if (keyword != ...

4. Many-to-many with collection property on association table    forum.hibernate.org

Beginner Joined: Wed Apr 05, 2006 5:01 am Posts: 20 Hibernate version: 3.1 Hi @all, i have a many-to-many association between my domain classes Employee and Organization. In the first iteration of my application i had an additional property on the association table connecting both. I mapped it using a composite-element, as you can see in the provided mapping for Employee ...

6. additional properties in many-to-many association table??    forum.hibernate.org

Hi, I'm having a lot of trouble figuring out the mapping needed for this setup. I've looked through FAQs, tutorials, and searched the forums with no luck (although I wouldn't be surprised if a similar issue has already been answered). Basically, what I want is a many-to-many relationship where the association table stores additional information (e.g. Is_Historical, below). Here's the setup: ...

7. Many to One association lazy property options    forum.hibernate.org

I am trying to understand the different fetch strategies available for many-to-one relation in Hibernate. http://www.hibernate.org/hib_docs/reference/en/html/performance.html#performance-fetching Quote: Proxy fetching - a single-valued association is fetched when a method other than the identifier getter is invoked upon the associated object. "No-proxy" fetching - a single-valued association is fetched when the instance variable is accessed. Compared to proxy fetching, this approach is less ...

8. Association with a property (more than a many-to-many rel.)    forum.hibernate.org

Profile Position name --- contains ---> name ... with status ...