: RE: [Hibernate] I need help with the Criteria API
when using joins
I forgot to include the exception I was getting
net.sf.hibernate.QueryException: could not resolve property:
order.state [null]
at
net.sf.hibernate.persister.AbstractPropertyMapping.toColumns(A
bstractPro
pertyMapping.java:42
-
From: Gavin King [mailto:[EMAIL PROTECTED]
Sent: Thursday, 2 October 2003 6:30 PM
To: Cameron Braid
Cc: [EMAIL PROTECTED]
Subject: Re: [Hibernate] I need help with the Criteria API
when using joins
You need to be using Hibernate 2.1. It is covered in the doco for 2.1.
Cameron Braid
On 02 Oct (19:29), Cameron Braid wrote:
Or is there a 2.1 beta 3 specific set of docs..
DO I need to get them from CVS ? If so which repo ?
No, the 2.1 documentation is in the doc/ subdirectory of the 2.1
distribution.
--
Christian Bauer
[EMAIL PROTECTED]
Thanks for your prompt response :)
Cam
-Original Message-
From: Gavin King [mailto:[EMAIL PROTECTED]
Sent: Thursday, 2 October 2003 7:46 PM
To: Cameron Braid
Cc: [EMAIL PROTECTED]
Subject: Re: [Hibernate] I need help with the Criteria API
when using joins
The docs
? If so which repo ?
Cheers,
Cameron
-Original Message-
From: Gavin King [mailto:[EMAIL PROTECTED]
Sent: Thursday, 2 October 2003 6:30 PM
To: Cameron Braid
Cc: [EMAIL PROTECTED]
Subject: Re: [Hibernate] I need help with the Criteria API
when using joins
You need to be using Hibernate
I am using Hibernate 2 beta 3.
I can use the criteria api successfully to query properties of the
'root' persistent class (OrderItem.class)
Criteria = session.createCriteria(OrderItem.class);
though when I want to query acros a many to one relationship, I can't
work out how to do it.
I have an
)
at
net.sf.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:149)
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Cameron Braid
Sent: Wednesday, 1 October 2003 9:28 PM
To: [EMAIL PROTECTED]
Subject: [Hibernate] I need help with the Criteria API when
using joins
to be implemented ?
Thanks
Cameron
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Cameron Braid
Sent: Wednesday, 1 October 2003 10:28 PM
To: [EMAIL PROTECTED]
Subject: RE: [Hibernate] I need help with the Criteria API
when using joins
I forgot