Where « Component « JPA Q&A





2. WHERE clause in SET mapping inside a COMPONENT    forum.hibernate.org

...

3. Null component - where to create    forum.hibernate.org

Hello, I have an Advert object that contains an embedded component, Location, which contains details of the Location of the Advert if it can be collected. I want to create a Location object when an Advert is first created, defaulting to the owner of the adverts postcode, but they can remove the postcode if they want to later. Now if I ...

4. Using a component in a where clause    forum.hibernate.org

Hi, I've searched in the documentation and FAQs but can't seem to find out exactly how you are able to specify a component in the where clause of a query. I have a component in my Question entity called Domain and would like to be able write a query like: session.createQuery("select distinct q.Subdomain from Question q where q.Domain= :domain") However I ...