Query « Component « JPA Q&A





1. How to query dynamic-component    forum.hibernate.org

Hi, I would like to query a dynamic-component, is it possible? If it is, what is the syntax ? Example: I tried .. session.find("from EventNodeWithHistoryData e where e.dimensions.d1 = 4") But it fails to build a query. Thanks ...

2. Query on component with a collection    forum.hibernate.org

...

3. Component Mapping and query    forum.hibernate.org

Hibernate version: 3 I am new to Hibernate and am having a few problems getting going. I have a Customer class with a few properties, and a component class, ContactDetails, which has properties of it's own. The Customer class can contain an instance of ContactDetails. I have mapped this in a Customer.hbm.xml file, below. The mapping is contained in hibernate.cfg.xml, also ...

4. how to query on a component property    forum.hibernate.org

Hi, Using the Criteria API, I'd like to know how to query on a component property. public AuditSegment { private Date creationDate; ... } public APersistentObject { private AuditSegment auditSegment; } I'd like to retrieve all APersistentObject instances that are created since 18/11/2005. Can somebody help me ? I found no doc on that. Thanks Christophe