relation « Component « JPA Q&A





1. Cant build HQL query that tie entites that relates via 'contained in element collection relation'    stackoverflow.com

I have following classes/mappings in my model:

@Entity
public class UpSaleReason {
    @Id
    @GeneratedValue
    private Long id;

    @ManyToOne
    ...

2. components, clobs, and multi-level entity relations    forum.hibernate.org

Hibernate version: 3.1.1 Name and version of the database you are using: MySQL 5 (soon to be Oracle 10g) Hello All! I have a object model where I am putting chunks of data into clob fields in the backing database, with multiple clobs (6 in one case) on one table. My DBA is pushing me to put these clobs into a ...

3. Optional components and a one-to-many relations    forum.hibernate.org

I'm fighting with a problem with an optional component I added to my class which has a one-to-many relation inside to another table. The problem is that the component member object is never null and always at least has an empty collection of referenced instances of the mentioned second object. Simplified the setup is as follows: Code: ...