type « Component « JPA Q&A





1. Mapping two components of the same type    forum.hibernate.org

I have to map two components of the same type, but hibernate maps them with the same name! Using Xdoclet, what happens is that I have two identical "component" elements inside my mapping document, so Hibernate throws Hibernate lazy instantiation problem: Repeated column in mapping for class ... should be mapped with insert="false" update="false": propertyName Here's the repeated element: (they only ...

2. many-to-many count without init and component types    forum.hibernate.org

Ok, the real question is: why does the FAQ http://www.hibernate.org/118.html#A10 suggest using a composite-element to represent the many-to-many with additional attributes, when it seems it would be more appropriate to say, " just make a 1st class object out of the relationship and use that, because composite-element doesn't support the semantics you'd expect from your plain m-to-m relationship"? Is it feasible ...

3. Entity Type used as Component -    forum.hibernate.org

I have an exisisting ORDER table that stores shipping, billing, and mailing address as well as some summary order info. The addresses are created from CUSTOMER addresses saved by address_type in an ADDRESS table. I have already created an address entity with a many-to-one mapping with a customer entity. Now I would like to use the address entity with the order. ...