RE: [Hibernate] New HQL features in CVS

2005-04-04 Thread Cameron Braid
Fantastic - That is exactly what I want :) I'd also like to see this : map creation from specified key and value columns (either key,value or aliased) select new keyedmap ( order.id as key, order as value) from Order order select new keyedmap ( order.id, order ) from Order order However th

[Hibernate] Strange exception is thrown when trying to insert an entity

2004-03-01 Thread Cameron Braid
I am using mysql4, with hibernate 2.1.2 , and am receiving this strange exception when adding a new entity.   java.lang.NullPointerExceptionat net.sf.hibernate.impl.BatcherImpl.closePreparedStatement(BatcherImpl.java:262)at net.sf.hibernate.impl.BatcherImpl.closeStatement(BatcherImpl.java:1

[Hibernate] new feature request / discussion : extension to select new MyClass

2003-12-10 Thread Cameron Braid
The "SELECT new DataClass(domainField1, domainField2) FROM class DomainClass" is an excellent feature, though I propose the following enhancements : a) Allow aliasing of the field names.  this allows the the default constructor to be used, and the bean properties set by name. SELECT new Dat

RE: [Hibernate] What's needed for JBoss integration?

2003-10-07 Thread Cameron Braid
I would also like to see some docs on how to best use existing tools within the development process. i.e ant / xdoclet for hibernate mapping generation, ejb deployment descriptor and interface generation etc.. This may be a little off topic, but I think it will encourage people to adopt Jboss /

RE: [Hibernate] Schema changes

2003-10-02 Thread Cameron Braid
Firstly make sure that the column exists in your database table. Secondly, since it is a primitive int, you need to make sure that it contains a value. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Andrew Zeon > Sent: Wednesday, 1 October 200

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

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

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

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

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

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

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

[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] I need help with the Criteria API when using joins

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

[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

[Hibernate] SchemaUpdater problems with mySQL for both 1.2 and 2 versions.

2003-02-19 Thread Cameron Braid
Title: Message I have found a problem in the mySQL alter table script generator when adding more than one column to a table.   The resultant, faulty DDL is :   alter table foo add firstNameRenamed VARCHAR(255), lastNameRenamed VARCHAR(255)   Where as the correct DDL is :   alter table foo a

[Hibernate] v 1.2 SchemaExport.execute() method to be made public

2003-02-19 Thread Cameron Braid
class due to the export() being private. Can this please be changed.. Thanks ! Cameron Braid Director Datacodex Pty Ltd [EMAIL PROTECTED] http://www.datacodex.com smime.p7s Description: S/MIME cryptographic signature