RE: [Hibernate] I need help with the Criteria API when using joins

2003-10-01 Thread Cameron Braid
I couldn't find any info on this subject on the hibernate site. There are examples of simple criteria based queries, but nothing with relationships. Does anyone have any code that achieves something like this ? Or refrence to anything that shows how ? Is it possible, or is it yet to be impleme

Re: [Hibernate] Gavin the TV star.

2003-10-01 Thread Gavin King
Cheers Dean! It was actually really hard doing the interview, I'm glad it came out okay :-) Dean Des Rosiers wrote: Eveyone, I'd like to congratulate Gavin on a very good interview with TSS. It was a real kick to see Gavin "in the flesh," as it were. Personally, I'd like to wish Hibernate th

[Hibernate] Gavin the TV star.

2003-10-01 Thread Dean Des Rosiers
Eveyone, I'd like to congratulate Gavin on a very good interview with TSS. It was a real kick to see Gavin "in the flesh," as it were. Personally, I'd like to wish Hibernate the best of luck in its association with JBoss. Since so many developers are using Gavin's code to save lots of time, I h

RE: [Hibernate] ClassMetaData - doesn't have content for Component classes

2003-10-01 Thread Cameron Braid
Brilliant ! Thanks :) > -Original Message- > From: Gavin King [mailto:[EMAIL PROTECTED] > Sent: Thursday, 2 October 2003 3:12 AM > To: Cameron Braid > Cc: [EMAIL PROTECTED] > Subject: Re: [Hibernate] ClassMetaData - doesn't have content > for Component classes > > > It is all availabl

Re: [Hibernate] ClassMetaData - doesn't have content for Component classes

2003-10-01 Thread Gavin King
It is all available through the property Type. You can cast to AbstractComponentType any Type that returns true for isComponentType(). Cameron Braid wrote: I wish to be able to query the hibernate class meta data for component classes. Is this something that can be added in ? Currently I ge

[Hibernate] ClassMetaData - doesn't have content for Component classes

2003-10-01 Thread Cameron Braid
Title: Message I wish to be able to query the hibernate class meta data for component classes.   Is this something that can be added in ?   Currently I get :   ... Caused by: net.sf.hibernate.MappingException: No persister for: com.datacodex.chemistsaustralia.domainobject.AddressComponent a

Re: [Hibernate] Problem with timestamp

2003-10-01 Thread Gavin King
Ooops. Sorry. I mean to say "mistaken" LOL. Gavin King wrote: You are mistake. --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ hibernate-devel ma

Re: [Hibernate] Problem with timestamp

2003-10-01 Thread Gavin King
You are mistake. Are you sure you didn't declare the column as "timestamp" instead of "datetime" in MySQL? Laurent Fleuriot wrote: Hi, I have a problem with timestamp. My problem is that I have an object java with 2 dates( start and end). When I insert the object, the date "end" is null BU

[Hibernate] Problem with timestamp

2003-10-01 Thread Laurent Fleuriot
Hi,   I have a problem with timestamp.   My problem is that I have an object java with 2 dates( start and end). When I insert the object, the date "end" is null BUT hibernate inserts into my database (mysql) the current Time. So, how can I tell to hibernate that it must insert the end date

RE: [Hibernate] I need help with the Criteria API when using joins

2003-10-01 Thread Cameron Braid
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(AbstractPro pertyMapping.java:42) at net.sf.hibernate.expression.AbstractCriterion.getCol

[Hibernate] I need help with the Criteria API when using joins

2003-10-01 Thread Cameron Braid
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