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
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
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
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 /
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
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
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
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
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
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
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
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
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
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
14 matches
Mail list logo