[Hibernate] org.hibernate.sql.GeneralTest missing class

2006-06-21 Thread Emmanuel Bernard
Product has not been commited



All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


Re: [Hibernate] org.hibernate.sql.GeneralTest missing class

2006-06-21 Thread Max Rydahl Andersen
On Wed, 21 Jun 2006 20:17:57 +0200, Emmanuel Bernard  
<[EMAIL PROTECTED]> wrote:

> Product has not been commited

sorry - fixed!

/max
>
>
>
> All the advantages of Linux Managed Hosting--Without the Cost and Risk!
> Fully trained technicians. The highest number of Red Hat certifications  
> in
> the hosting industry. Fanatical Support. Click to learn more
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
> ___
> hibernate-devel mailing list
> hibernate-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/hibernate-devel



-- 
--
Max Rydahl Andersen
callto://max.rydahl.andersen

Hibernate
[EMAIL PROTECTED]
http://hibernate.org

JBoss Inc
[EMAIL PROTECTED]

All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


Re: [Hibernate] New error on Annotation query

2006-06-21 Thread Steve Ebersole
Try it again from SVN.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Emmanuel Bernard
Sent: Sunday, June 18, 2006 10:21 PM
To: Hibernate development
Subject: [Hibernate] New error on Annotation query

Has something changed that I haven't propagated in my code?


org.hibernate.HibernateException: cannot perform autodiscovery on 
queries with non-scalar results
at 
org.hibernate.loader.custom.CustomLoader$NonScalarResultColumnProcessor.
performDiscovery(CustomLoader.java:453)
at 
org.hibernate.loader.custom.CustomLoader.autoDiscoverTypes(CustomLoader.
java:511)
at org.hibernate.loader.Loader.getResultSet(Loader.java:1677)
at org.hibernate.loader.Loader.doQuery(Loader.java:662)
at 
org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loade
r.java:224)
at org.hibernate.loader.Loader.doList(Loader.java:2144)
at
org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2028)
at org.hibernate.loader.Loader.list(Loader.java:2023)
at
org.hibernate.loader.custom.CustomLoader.list(CustomLoader.java:290)
at
org.hibernate.impl.SessionImpl.listCustomQuery(SessionImpl.java:1695)
at 
org.hibernate.impl.AbstractSessionImpl.list(AbstractSessionImpl.java:142
)
at org.hibernate.impl.SQLQueryImpl.list(SQLQueryImpl.java:150)
at 
org.hibernate.test.annotations.query.QueryTest.testNativeQueryAndComposi
tePKAndComponents(QueryTest.java:195)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at org.hibernate.test.annotations.TestCase.runTest(TestCase.java:67)
at 
com.intellij.rt.execution.junit2.JUnitStarter.main(JUnitStarter.java:32)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at
com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)



@NamedNativeQuery(name = "compositekey",
query = "select name, model, speed, lname as lastn, fname as 
firstn, length, width, length * width as surface, length * width *10 as 
volume from SpaceShip",
resultSetMapping = "compositekey")
}


@SqlResultSetMapping(name = "compositekey",
entities = @EntityResult(entityClass = 
org.hibernate.test.annotations.query.SpaceShip.class,
fields = {
@FieldResult(name = "name", column = "name"),
@FieldResult(name = "model", column = "model"),
@FieldResult(name = "speed", column = "speed"),
@FieldResult(name = "dimensions.width", column =
"width"),
@FieldResult(name = "captain.lastname", column =
"lastn"),
@FieldResult(name = "dimensions.length", column =
"length"),
@FieldResult(name = "captain.firstname", column =
"firstn")
}),
columns = [EMAIL PROTECTED](name = "surface"),
@ColumnResult(name = "volume")})



___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] Plan for 3.1.x JIRA issues?

2006-06-21 Thread Josh Moore
Is there a procedure for having 3.1.x issues moved to 3.2? Two tickets 
from the 3.1.2/3.1.3 days, in particular, that I've been watching for 
months still haven't been assigned. If there's anything I need to do to 
have them apply to the 3.2 branch (more than adding a comment such as 
cloning), please let me know.

Specifically they are:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-1401
which outlines a fairly large problem with session.merge() while using 
versions. Test case included.

http://opensource.atlassian.com/projects/hibernate/browse/HHH-1507
which points to a simple typo in hibernate-mapping-3.0.dtd, that forces 
us to patch every release.

Thanks,
Josh Moore
The Openmicroscopy Environment

All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


Re: [Hibernate] New error on Annotation query

2006-06-21 Thread Emmanuel Bernard
The initial issue is fixed,
But now I do have some weird type conversion using HSQLDB (didn't tried 
the other ones).

basically I do have
public Dimension() {
  private int length;
  private int width;
}

ints are converted into INTEGER types at the DB level, fine

The following native SQL query, mapped using scalar autodiscovery
select length * width as surface, length * width * 10 as volume ...

returns String for the first argument and Double for the second
The same query used to return BigInteger for the first one and 
BigDecimal for the second.



Steve Ebersole wrote:
>
> Try it again from SVN.
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> Emmanuel Bernard
> Sent: Sunday, June 18, 2006 10:21 PM
> To: Hibernate development
> Subject: [Hibernate] New error on Annotation query
>
> Has something changed that I haven't propagated in my code?
>
>
> org.hibernate.HibernateException: cannot perform autodiscovery on
> queries with non-scalar results
> at
> org.hibernate.loader.custom.CustomLoader$NonScalarResultColumnProcessor.
> performDiscovery(CustomLoader.java:453)
> at
> org.hibernate.loader.custom.CustomLoader.autoDiscoverTypes(CustomLoader.
> java:511)
> at org.hibernate.loader.Loader.getResultSet(Loader.java:1677)
> at org.hibernate.loader.Loader.doQuery(Loader.java:662)
> at
> org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loade
> r.java:224)
> at org.hibernate.loader.Loader.doList(Loader.java:2144)
> at
> org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2028)
> at org.hibernate.loader.Loader.list(Loader.java:2023)
> at
> org.hibernate.loader.custom.CustomLoader.list(CustomLoader.java:290)
> at
> org.hibernate.impl.SessionImpl.listCustomQuery(SessionImpl.java:1695)
> at
> org.hibernate.impl.AbstractSessionImpl.list(AbstractSessionImpl.java:142
> )
> at org.hibernate.impl.SQLQueryImpl.list(SQLQueryImpl.java:150)
> at
> org.hibernate.test.annotations.query.QueryTest.testNativeQueryAndComposi
> tePKAndComponents(QueryTest.java:195)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> a:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.java:25)
> at org.hibernate.test.annotations.TestCase.runTest(TestCase.java:67)
> at
> com.intellij.rt.execution.junit2.JUnitStarter.main(JUnitStarter.java:32)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> a:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.java:25)
> at
> com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
>
>
>
> @NamedNativeQuery(name = "compositekey",
> query = "select name, model, speed, lname as lastn, fname as
> firstn, length, width, length * width as surface, length * width *10 as
> volume from SpaceShip",
> resultSetMapping = "compositekey")
> }
>
>
> @SqlResultSetMapping(name = "compositekey",
> entities = @EntityResult(entityClass =
> org.hibernate.test.annotations.query.SpaceShip.class,
> fields = {
> @FieldResult(name = "name", column = "name"),
> @FieldResult(name = "model", column = "model"),
> @FieldResult(name = "speed", column = "speed"),
> @FieldResult(name = "dimensions.width", column =
> "width"),
> @FieldResult(name = "captain.lastname", column =
> "lastn"),
> @FieldResult(name = "dimensions.length", column =
> "length"),
> @FieldResult(name = "captain.firstname", column =
> "firstn")
> }),
> columns = [EMAIL PROTECTED](name = "surface"),
> @ColumnResult(name = "volume")})
>
>
>
> ___
> hibernate-devel mailing list
> hibernate-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/hibernate-devel
>


All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


Re: [Hibernate] New error on Annotation query

2006-06-21 Thread Max Rydahl Andersen

This should be controlled by calls to Dialect.registerHibernateType() and  
whatever the underlying db returns.

This has not changed afaik.

/max

> The initial issue is fixed,
> But now I do have some weird type conversion using HSQLDB (didn't tried
> the other ones).
>
> basically I do have
> public Dimension() {
>   private int length;
>   private int width;
> }
>
> ints are converted into INTEGER types at the DB level, fine
>
> The following native SQL query, mapped using scalar autodiscovery
> select length * width as surface, length * width * 10 as volume ...
>
> returns String for the first argument and Double for the second
> The same query used to return BigInteger for the first one and
> BigDecimal for the second.
>
>
>
> Steve Ebersole wrote:
>>
>> Try it again from SVN.
>>
>> -Original Message-
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED] On Behalf Of
>> Emmanuel Bernard
>> Sent: Sunday, June 18, 2006 10:21 PM
>> To: Hibernate development
>> Subject: [Hibernate] New error on Annotation query
>>
>> Has something changed that I haven't propagated in my code?
>>
>>
>> org.hibernate.HibernateException: cannot perform autodiscovery on
>> queries with non-scalar results
>> at
>> org.hibernate.loader.custom.CustomLoader$NonScalarResultColumnProcessor.
>> performDiscovery(CustomLoader.java:453)
>> at
>> org.hibernate.loader.custom.CustomLoader.autoDiscoverTypes(CustomLoader.
>> java:511)
>> at org.hibernate.loader.Loader.getResultSet(Loader.java:1677)
>> at org.hibernate.loader.Loader.doQuery(Loader.java:662)
>> at
>> org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loade
>> r.java:224)
>> at org.hibernate.loader.Loader.doList(Loader.java:2144)
>> at
>> org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2028)
>> at org.hibernate.loader.Loader.list(Loader.java:2023)
>> at
>> org.hibernate.loader.custom.CustomLoader.list(CustomLoader.java:290)
>> at
>> org.hibernate.impl.SessionImpl.listCustomQuery(SessionImpl.java:1695)
>> at
>> org.hibernate.impl.AbstractSessionImpl.list(AbstractSessionImpl.java:142
>> )
>> at org.hibernate.impl.SQLQueryImpl.list(SQLQueryImpl.java:150)
>> at
>> org.hibernate.test.annotations.query.QueryTest.testNativeQueryAndComposi
>> tePKAndComponents(QueryTest.java:195)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
>> a:39)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
>> Impl.java:25)
>> at org.hibernate.test.annotations.TestCase.runTest(TestCase.java:67)
>> at
>> com.intellij.rt.execution.junit2.JUnitStarter.main(JUnitStarter.java:32)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
>> a:39)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
>> Impl.java:25)
>> at
>> com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
>>
>>
>>
>> @NamedNativeQuery(name = "compositekey",
>> query = "select name, model, speed, lname as lastn, fname as
>> firstn, length, width, length * width as surface, length * width *10 as
>> volume from SpaceShip",
>> resultSetMapping = "compositekey")
>> }
>>
>>
>> @SqlResultSetMapping(name = "compositekey",
>> entities = @EntityResult(entityClass =
>> org.hibernate.test.annotations.query.SpaceShip.class,
>> fields = {
>> @FieldResult(name = "name", column = "name"),
>> @FieldResult(name = "model", column = "model"),
>> @FieldResult(name = "speed", column = "speed"),
>> @FieldResult(name = "dimensions.width", column =
>> "width"),
>> @FieldResult(name = "captain.lastname", column =
>> "lastn"),
>> @FieldResult(name = "dimensions.length", column =
>> "length"),
>> @FieldResult(name = "captain.firstname", column =
>> "firstn")
>> }),
>> columns = [EMAIL PROTECTED](name = "surface"),
>> @ColumnResult(name = "volume")})
>>
>>
>>
>> ___
>> hibernate-devel mailing list
>> hibernate-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/hibernate-devel
>>
>
>
> All the advantages of Linux Managed Hosting--Without the Cost and Risk!
> Fully trained technicians. The highest number of Red Hat certifications  
> in
> the hosting industry. Fanatical Support. Click to learn more
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
> ___
> hibernate-devel mailing list
> hibernate-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/hibernate-devel



-- 
--
Max Rydahl Andersen
callto://max.rydahl.andersen

Hibernate

Re: [Hibernate] New error on Annotation query

2006-06-21 Thread Max Rydahl Andersen

btw. does the spec say about the conversion rules for this ?

/max

> The initial issue is fixed,
> But now I do have some weird type conversion using HSQLDB (didn't tried
> the other ones).
>
> basically I do have
> public Dimension() {
>   private int length;
>   private int width;
> }
>
> ints are converted into INTEGER types at the DB level, fine
>
> The following native SQL query, mapped using scalar autodiscovery
> select length * width as surface, length * width * 10 as volume ...
>
> returns String for the first argument and Double for the second
> The same query used to return BigInteger for the first one and
> BigDecimal for the second.
>
>
>
> Steve Ebersole wrote:
>>
>> Try it again from SVN.
>>
>> -Original Message-
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED] On Behalf Of
>> Emmanuel Bernard
>> Sent: Sunday, June 18, 2006 10:21 PM
>> To: Hibernate development
>> Subject: [Hibernate] New error on Annotation query
>>
>> Has something changed that I haven't propagated in my code?
>>
>>
>> org.hibernate.HibernateException: cannot perform autodiscovery on
>> queries with non-scalar results
>> at
>> org.hibernate.loader.custom.CustomLoader$NonScalarResultColumnProcessor.
>> performDiscovery(CustomLoader.java:453)
>> at
>> org.hibernate.loader.custom.CustomLoader.autoDiscoverTypes(CustomLoader.
>> java:511)
>> at org.hibernate.loader.Loader.getResultSet(Loader.java:1677)
>> at org.hibernate.loader.Loader.doQuery(Loader.java:662)
>> at
>> org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loade
>> r.java:224)
>> at org.hibernate.loader.Loader.doList(Loader.java:2144)
>> at
>> org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2028)
>> at org.hibernate.loader.Loader.list(Loader.java:2023)
>> at
>> org.hibernate.loader.custom.CustomLoader.list(CustomLoader.java:290)
>> at
>> org.hibernate.impl.SessionImpl.listCustomQuery(SessionImpl.java:1695)
>> at
>> org.hibernate.impl.AbstractSessionImpl.list(AbstractSessionImpl.java:142
>> )
>> at org.hibernate.impl.SQLQueryImpl.list(SQLQueryImpl.java:150)
>> at
>> org.hibernate.test.annotations.query.QueryTest.testNativeQueryAndComposi
>> tePKAndComponents(QueryTest.java:195)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
>> a:39)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
>> Impl.java:25)
>> at org.hibernate.test.annotations.TestCase.runTest(TestCase.java:67)
>> at
>> com.intellij.rt.execution.junit2.JUnitStarter.main(JUnitStarter.java:32)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
>> a:39)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
>> Impl.java:25)
>> at
>> com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
>>
>>
>>
>> @NamedNativeQuery(name = "compositekey",
>> query = "select name, model, speed, lname as lastn, fname as
>> firstn, length, width, length * width as surface, length * width *10 as
>> volume from SpaceShip",
>> resultSetMapping = "compositekey")
>> }
>>
>>
>> @SqlResultSetMapping(name = "compositekey",
>> entities = @EntityResult(entityClass =
>> org.hibernate.test.annotations.query.SpaceShip.class,
>> fields = {
>> @FieldResult(name = "name", column = "name"),
>> @FieldResult(name = "model", column = "model"),
>> @FieldResult(name = "speed", column = "speed"),
>> @FieldResult(name = "dimensions.width", column =
>> "width"),
>> @FieldResult(name = "captain.lastname", column =
>> "lastn"),
>> @FieldResult(name = "dimensions.length", column =
>> "length"),
>> @FieldResult(name = "captain.firstname", column =
>> "firstn")
>> }),
>> columns = [EMAIL PROTECTED](name = "surface"),
>> @ColumnResult(name = "volume")})
>>
>>
>>
>> ___
>> hibernate-devel mailing list
>> hibernate-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/hibernate-devel
>>
>
>
> All the advantages of Linux Managed Hosting--Without the Cost and Risk!
> Fully trained technicians. The highest number of Red Hat certifications  
> in
> the hosting industry. Fanatical Support. Click to learn more
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
> ___
> hibernate-devel mailing list
> hibernate-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/hibernate-devel



-- 
--
Max Rydahl Andersen
callto://max.rydahl.andersen

Hibernate
[EMAIL PROTECTED]
http://hibernate.org

JBoss Inc
[EMAIL PROTECTED]

All the adv

Re: [Hibernate] New error on Annotation query

2006-06-21 Thread Steve Ebersole
I am creating a similar test in the core testsuite and see if I can
reproduce.

-Original Message-
From: Max Andersen 
Sent: Wednesday, June 21, 2006 3:53 PM
To: Emmanuel Bernard; Steve Ebersole
Cc: Hibernate development
Subject: Re: [Hibernate] New error on Annotation query


This should be controlled by calls to Dialect.registerHibernateType()
and  
whatever the underlying db returns.

This has not changed afaik.

/max

> The initial issue is fixed,
> But now I do have some weird type conversion using HSQLDB (didn't
tried
> the other ones).
>
> basically I do have
> public Dimension() {
>   private int length;
>   private int width;
> }
>
> ints are converted into INTEGER types at the DB level, fine
>
> The following native SQL query, mapped using scalar autodiscovery
> select length * width as surface, length * width * 10 as volume ...
>
> returns String for the first argument and Double for the second
> The same query used to return BigInteger for the first one and
> BigDecimal for the second.
>
>
>
> Steve Ebersole wrote:
>>
>> Try it again from SVN.
>>
>> -Original Message-
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED] On Behalf Of
>> Emmanuel Bernard
>> Sent: Sunday, June 18, 2006 10:21 PM
>> To: Hibernate development
>> Subject: [Hibernate] New error on Annotation query
>>
>> Has something changed that I haven't propagated in my code?
>>
>>
>> org.hibernate.HibernateException: cannot perform autodiscovery on
>> queries with non-scalar results
>> at
>>
org.hibernate.loader.custom.CustomLoader$NonScalarResultColumnProcessor.
>> performDiscovery(CustomLoader.java:453)
>> at
>>
org.hibernate.loader.custom.CustomLoader.autoDiscoverTypes(CustomLoader.
>> java:511)
>> at org.hibernate.loader.Loader.getResultSet(Loader.java:1677)
>> at org.hibernate.loader.Loader.doQuery(Loader.java:662)
>> at
>>
org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loade
>> r.java:224)
>> at org.hibernate.loader.Loader.doList(Loader.java:2144)
>> at
>> org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2028)
>> at org.hibernate.loader.Loader.list(Loader.java:2023)
>> at
>> org.hibernate.loader.custom.CustomLoader.list(CustomLoader.java:290)
>> at
>> org.hibernate.impl.SessionImpl.listCustomQuery(SessionImpl.java:1695)
>> at
>>
org.hibernate.impl.AbstractSessionImpl.list(AbstractSessionImpl.java:142
>> )
>> at org.hibernate.impl.SQLQueryImpl.list(SQLQueryImpl.java:150)
>> at
>>
org.hibernate.test.annotations.query.QueryTest.testNativeQueryAndComposi
>> tePKAndComponents(QueryTest.java:195)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
>> a:39)
>> at
>>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
>> Impl.java:25)
>> at
org.hibernate.test.annotations.TestCase.runTest(TestCase.java:67)
>> at
>>
com.intellij.rt.execution.junit2.JUnitStarter.main(JUnitStarter.java:32)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
>> a:39)
>> at
>>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
>> Impl.java:25)
>> at
>> com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
>>
>>
>>
>> @NamedNativeQuery(name = "compositekey",
>> query = "select name, model, speed, lname as lastn, fname as
>> firstn, length, width, length * width as surface, length * width *10
as
>> volume from SpaceShip",
>> resultSetMapping = "compositekey")
>> }
>>
>>
>> @SqlResultSetMapping(name = "compositekey",
>> entities = @EntityResult(entityClass =
>> org.hibernate.test.annotations.query.SpaceShip.class,
>> fields = {
>> @FieldResult(name = "name", column = "name"),
>> @FieldResult(name = "model", column = "model"),
>> @FieldResult(name = "speed", column = "speed"),
>> @FieldResult(name = "dimensions.width", column =
>> "width"),
>> @FieldResult(name = "captain.lastname", column =
>> "lastn"),
>> @FieldResult(name = "dimensions.length", column =
>> "length"),
>> @FieldResult(name = "captain.firstname", column =
>> "firstn")
>> }),
>> columns = [EMAIL PROTECTED](name = "surface"),
>> @ColumnResult(name = "volume")})
>>
>>
>>
>> ___
>> hibernate-devel mailing list
>> hibernate-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/hibernate-devel
>>
>
>
> All the advantages of Linux Managed Hosting--Without the Cost and
Risk!
> Fully trained technicians. The highest number of Red Hat
certifications  
> in
> the hosting industry. Fanatical Support. Click to learn more
>
http://sel.as-us.falkag.net/sel?cmd=lnk&ki

Re: [Hibernate] New error on Annotation query

2006-06-21 Thread Steve Ebersole
I just ran this on Oracle-10g and HSQLDB and both worked fine for me.

On Oracle, the discovered types were BigDecimalType and BigDecimalType.

On HSQLDB, the discovered types were BigIntegerType and BigDecimalType

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Steve Ebersole
Sent: Wednesday, June 21, 2006 3:55 PM
To: Max Andersen; Emmanuel Bernard
Cc: Hibernate development
Subject: Re: [Hibernate] New error on Annotation query

I am creating a similar test in the core testsuite and see if I can
reproduce.

-Original Message-
From: Max Andersen 
Sent: Wednesday, June 21, 2006 3:53 PM
To: Emmanuel Bernard; Steve Ebersole
Cc: Hibernate development
Subject: Re: [Hibernate] New error on Annotation query


This should be controlled by calls to Dialect.registerHibernateType()
and  
whatever the underlying db returns.

This has not changed afaik.

/max

> The initial issue is fixed,
> But now I do have some weird type conversion using HSQLDB (didn't
tried
> the other ones).
>
> basically I do have
> public Dimension() {
>   private int length;
>   private int width;
> }
>
> ints are converted into INTEGER types at the DB level, fine
>
> The following native SQL query, mapped using scalar autodiscovery
> select length * width as surface, length * width * 10 as volume ...
>
> returns String for the first argument and Double for the second
> The same query used to return BigInteger for the first one and
> BigDecimal for the second.
>
>
>
> Steve Ebersole wrote:
>>
>> Try it again from SVN.
>>
>> -Original Message-
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED] On Behalf Of
>> Emmanuel Bernard
>> Sent: Sunday, June 18, 2006 10:21 PM
>> To: Hibernate development
>> Subject: [Hibernate] New error on Annotation query
>>
>> Has something changed that I haven't propagated in my code?
>>
>>
>> org.hibernate.HibernateException: cannot perform autodiscovery on
>> queries with non-scalar results
>> at
>>
org.hibernate.loader.custom.CustomLoader$NonScalarResultColumnProcessor.
>> performDiscovery(CustomLoader.java:453)
>> at
>>
org.hibernate.loader.custom.CustomLoader.autoDiscoverTypes(CustomLoader.
>> java:511)
>> at org.hibernate.loader.Loader.getResultSet(Loader.java:1677)
>> at org.hibernate.loader.Loader.doQuery(Loader.java:662)
>> at
>>
org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loade
>> r.java:224)
>> at org.hibernate.loader.Loader.doList(Loader.java:2144)
>> at
>> org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2028)
>> at org.hibernate.loader.Loader.list(Loader.java:2023)
>> at
>> org.hibernate.loader.custom.CustomLoader.list(CustomLoader.java:290)
>> at
>> org.hibernate.impl.SessionImpl.listCustomQuery(SessionImpl.java:1695)
>> at
>>
org.hibernate.impl.AbstractSessionImpl.list(AbstractSessionImpl.java:142
>> )
>> at org.hibernate.impl.SQLQueryImpl.list(SQLQueryImpl.java:150)
>> at
>>
org.hibernate.test.annotations.query.QueryTest.testNativeQueryAndComposi
>> tePKAndComponents(QueryTest.java:195)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
>> a:39)
>> at
>>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
>> Impl.java:25)
>> at
org.hibernate.test.annotations.TestCase.runTest(TestCase.java:67)
>> at
>>
com.intellij.rt.execution.junit2.JUnitStarter.main(JUnitStarter.java:32)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
>> a:39)
>> at
>>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
>> Impl.java:25)
>> at
>> com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
>>
>>
>>
>> @NamedNativeQuery(name = "compositekey",
>> query = "select name, model, speed, lname as lastn, fname as
>> firstn, length, width, length * width as surface, length * width *10
as
>> volume from SpaceShip",
>> resultSetMapping = "compositekey")
>> }
>>
>>
>> @SqlResultSetMapping(name = "compositekey",
>> entities = @EntityResult(entityClass =
>> org.hibernate.test.annotations.query.SpaceShip.class,
>> fields = {
>> @FieldResult(name = "name", column = "name"),
>> @FieldResult(name = "model", column = "model"),
>> @FieldResult(name = "speed", column = "speed"),
>> @FieldResult(name = "dimensions.width", column =
>> "width"),
>> @FieldResult(name = "captain.lastname", column =
>> "lastn"),
>> @FieldResult(name = "dimensions.length", column =
>> "length"),
>> @FieldResult(name = "captain.firstname", column =
>> "firstn")
>> }),
>> columns = [EMAIL PROTECTED](name = "surface"),
>> @ColumnResult(name = "

Re: [Hibernate] New error on Annotation query

2006-06-21 Thread Emmanuel Bernard
My description was too generic. I've updated the GeneralTest by adding a 
SpaceShip class.
It now fails with the error I encountered.

Steve Ebersole wrote:
> I just ran this on Oracle-10g and HSQLDB and both worked fine for me.
>
> On Oracle, the discovered types were BigDecimalType and BigDecimalType.
>
> On HSQLDB, the discovered types were BigIntegerType and BigDecimalType
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> Steve Ebersole
> Sent: Wednesday, June 21, 2006 3:55 PM
> To: Max Andersen; Emmanuel Bernard
> Cc: Hibernate development
> Subject: Re: [Hibernate] New error on Annotation query
>
> I am creating a similar test in the core testsuite and see if I can
> reproduce.
>
> -Original Message-
> From: Max Andersen 
> Sent: Wednesday, June 21, 2006 3:53 PM
> To: Emmanuel Bernard; Steve Ebersole
> Cc: Hibernate development
> Subject: Re: [Hibernate] New error on Annotation query
>
>
> This should be controlled by calls to Dialect.registerHibernateType()
> and  
> whatever the underlying db returns.
>
> This has not changed afaik.
>
> /max
>
>   
>> The initial issue is fixed,
>> But now I do have some weird type conversion using HSQLDB (didn't
>> 
> tried
>   
>> the other ones).
>>
>> basically I do have
>> public Dimension() {
>>   private int length;
>>   private int width;
>> }
>>
>> ints are converted into INTEGER types at the DB level, fine
>>
>> The following native SQL query, mapped using scalar autodiscovery
>> select length * width as surface, length * width * 10 as volume ...
>>
>> returns String for the first argument and Double for the second
>> The same query used to return BigInteger for the first one and
>> BigDecimal for the second.
>>
>>
>>
>> Steve Ebersole wrote:
>> 
>>> Try it again from SVN.
>>>
>>> -Original Message-
>>> From: [EMAIL PROTECTED]
>>> [mailto:[EMAIL PROTECTED] On Behalf Of
>>> Emmanuel Bernard
>>> Sent: Sunday, June 18, 2006 10:21 PM
>>> To: Hibernate development
>>> Subject: [Hibernate] New error on Annotation query
>>>
>>> Has something changed that I haven't propagated in my code?
>>>
>>>
>>> org.hibernate.HibernateException: cannot perform autodiscovery on
>>> queries with non-scalar results
>>> at
>>>
>>>   
> org.hibernate.loader.custom.CustomLoader$NonScalarResultColumnProcessor.
>   
>>> performDiscovery(CustomLoader.java:453)
>>> at
>>>
>>>   
> org.hibernate.loader.custom.CustomLoader.autoDiscoverTypes(CustomLoader.
>   
>>> java:511)
>>> at org.hibernate.loader.Loader.getResultSet(Loader.java:1677)
>>> at org.hibernate.loader.Loader.doQuery(Loader.java:662)
>>> at
>>>
>>>   
> org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loade
>   
>>> r.java:224)
>>> at org.hibernate.loader.Loader.doList(Loader.java:2144)
>>> at
>>> org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2028)
>>> at org.hibernate.loader.Loader.list(Loader.java:2023)
>>> at
>>> org.hibernate.loader.custom.CustomLoader.list(CustomLoader.java:290)
>>> at
>>> org.hibernate.impl.SessionImpl.listCustomQuery(SessionImpl.java:1695)
>>> at
>>>
>>>   
> org.hibernate.impl.AbstractSessionImpl.list(AbstractSessionImpl.java:142
>   
>>> )
>>> at org.hibernate.impl.SQLQueryImpl.list(SQLQueryImpl.java:150)
>>> at
>>>
>>>   
> org.hibernate.test.annotations.query.QueryTest.testNativeQueryAndComposi
>   
>>> tePKAndComponents(QueryTest.java:195)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
>>>
>>>   
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
>   
>>> a:39)
>>> at
>>>
>>>   
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
>   
>>> Impl.java:25)
>>> at
>>>   
> org.hibernate.test.annotations.TestCase.runTest(TestCase.java:67)
>   
>>> at
>>>
>>>   
> com.intellij.rt.execution.junit2.JUnitStarter.main(JUnitStarter.java:32)
>   
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
>>>
>>>   
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
>   
>>> a:39)
>>> at
>>>
>>>   
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
>   
>>> Impl.java:25)
>>> at
>>> com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
>>>
>>>
>>>
>>> @NamedNativeQuery(name = "compositekey",
>>> query = "select name, model, speed, lname as lastn, fname as
>>> firstn, length, width, length * width as surface, length * width *10
>>>   
> as
>   
>>> volume from SpaceShip",
>>> resultSetMapping = "compositekey")
>>> }
>>>
>>>
>>> @SqlResultSetMapping(name = "compositekey",
>>> entities = @EntityResult(entityClass =
>>> org.hibernate.test.annotations.query.SpaceShip.class,
>>> fields = {
>>> @FieldResult(name = "name", column = "name"),
>>> @FieldRes

[Hibernate] hibernate-timesten-testsuite Build Completed With Testsuite Errors

2006-06-21 Thread qa

View results here -> http://cruisecontrol.jboss.com/cc/buildresults/hibernate-timesten-testsuite?log=log20060621215954
TESTS FAILEDAnt Error Message: /home/cruisecontrol/work/scripts/build-hibernate-db-matrix.xml:93: The following error occurred while executing this line: /home/cruisecontrol/work/scripts/build-hibernate-db-matrix.xml:77: The following error occurred while executing this line: /home/cruisecontrol/work/scripts/build-common-targets.xml:11: Build Successful - Tests completed with errors or failures.Date of build: 06/21/2006 21:59:54Time to build: 24 minutes 11 seconds




    Unit Tests: (849)    Total Errors and Failures: (215)testCompositeIdsorg.hibernate.test.cid.CompositeIdTesttestNonLazyFetchorg.hibernate.test.cid.CompositeIdTesttestMultipleCollectionFetchorg.hibernate.test.cid.CompositeIdTesttestUpdateFalseorg.hibernate.test.component.ComponentTesttestComponentorg.hibernate.test.component.ComponentTesttestComponentFormulaQueryorg.hibernate.test.component.ComponentTesttestNamedQueryorg.hibernate.test.component.ComponentTesttestSerializationFailsOnAfterStatementAggressiveReleaseWithOpenResourcesorg.hibernate.test.connections.AggressiveReleaseTesttestQueryScrollingorg.hibernate.test.connections.AggressiveReleaseTesttestConnectedSerializationorg.hibernate.test.connections.AggressiveReleaseTesttestManualDisconnectWithOpenResourcesorg.hibernate.test.connections.AggressiveReleaseTesttestConnectedSerializationorg.hibernate.test.connections.BasicConnectionProviderTesttestManualDisconnectWithOpenResourcesorg.hibernate.test.connections.BasicConnectionProviderTesttestSerializationFailsOnAfterStatementAggressiveReleaseWithOpenResourcesorg.hibernate.test.connections.CurrentSessionConnectionTesttestQueryScrollingorg.hibernate.test.connections.CurrentSessionConnectionTesttestConnectedSerializationorg.hibernate.test.connections.CurrentSessionConnectionTesttestManualDisconnectWithOpenResourcesorg.hibernate.test.connections.CurrentSessionConnectionTesttestConnectedSerializationorg.hibernate.test.connections.SuppliedConnectionTesttestManualDisconnectWithOpenResourcesorg.hibernate.test.connections.SuppliedConnectionTesttestScrollCriteriaorg.hibernate.test.criteria.CriteriaQueryTesttestRestrictionOnSubclassCollectionorg.hibernate.test.criteria.CriteriaQueryTesttestClassPropertyorg.hibernate.test.criteria.CriteriaQueryTesttestCompositeUserTypeorg.hibernate.test.cut.CompositeUserTypeTesttestDom4jorg.hibernate.test.dom4j.Dom4jTesttestMapIndexEmisionorg.hibernate.test.dom4j.Dom4jTesttestOrphanDeleteorg.hibernate.test.extralazy.ExtraLazyTesttestIndexFormulaMaporg.hibernate.test.extralazy.ExtraLazyTesttestJdkEnumStyleEnumConstantorg.hibernate.test.hql.ASTParserLoadingTesttestParameterTypeMismatchFailsorg.hibernate.test.hql.ASTParserLoadingTesttestCollectionJoinsInSubselectorg.hibernate.test.hql.ASTParserLoadingTesttestCollectionFetchWithDistinctionAndLimitorg.hibernate.test.hql.ASTParserLoadingTesttestNestedCollectionFetchorg.hibernate.test.hql.ASTParserLoadingTesttestSelectClauseSubselectorg.hibernate.test.hql.ASTParserLoadingTesttestImplicitPolymorphismorg.hibernate.test.hql.ASTParserLoadingTesttestCoalesceorg.hibernate.test.hql.ASTParserLoadingTesttestStrorg.hibernate.test.hql.ASTParserLoadingTesttestCastorg.hibernate.test.hql.ASTParserLoadingTesttestExtractorg.hibernate.test.hql.ASTParserLoadingTesttestOneToManyFilterorg.hibernate.test.hql.ASTParserLoadingTesttestSelectExpressionsorg.hibernate.test.hql.ASTParserLoadingTesttestWhereorg.hibernate.test.hql.ASTParserLoadingTesttestEntityFetchingorg.hibernate.test.hql.ASTParserLoadingTesttestCollectionFetchingorg.hibernate.test.hql.ASTParserLoadingTesttestStandardFunctionsorg.hibernate.test.hql.ASTParserLoadingTesttestDynamicInstantiationQueriesorg.hibernate.test.hql.ASTParserLoadingTesttestResultTransformerScalarQueriesorg.hibernate.test.hql.ASTParserLoadingTesttestResultTransformerEntityQueriesorg.hibernate.test.hql.ASTParserLoadingTesttestEJBQLFunctionsorg.hibernate.test.hql.ASTParserLoadingTesttestSubselectBetweenorg.hibernate.test.hql.ASTParserLoadingTesttestTempTableGenerationIsolationorg.hibernate.test.hql.BulkManipulationTesttestSimpleInsertorg.hibernate.test.hql.BulkManipulationTesttestSimpleNativeSQLInsertorg.hibernate.test.hql.BulkManipulationTesttestInsertWithManyToOneorg.hibernate.test.hql.BulkManipulationTesttestInsertWithMismatchedTypesorg.hibernate.test.hql.BulkManipulationTesttestInsertIntoSuperclassPropertiesFailsorg.hibernate.test.hql.BulkManipulationTesttestInsertAcrossMappedJoinFailsorg.hibernate.test.hql.BulkManipulationTesttestInsertWithGeneratedIdorg.hibernate.test.hql.BulkManipulationTesttestInsertWithGeneratedVersionAndIdorg.hibernate.test.hql.BulkManipulationTesttestInsertWithGeneratedTimestampVersionorg.hibernate.test.hql.BulkManipulationTesttestUpdateOnDiscriminatorSubclassorg.hibernate.test.hql.BulkManipulationTesttestUpdateOnAnimalorg.hibernate.test.hql.BulkManipulationTesttestUpdateOnMa

[Hibernate] hibernate-hsqldb-testsuite Build Completed With Testsuite Errors

2006-06-21 Thread qa

View results here -> http://cruisecontrol.jboss.com/cc/buildresults/hibernate-hsqldb-testsuite?log=log20060621223938
TESTS FAILEDAnt Error Message: /home/cruisecontrol/work/scripts/build-hibernate-db-matrix.xml:86: The following error occurred while executing this line: /home/cruisecontrol/work/scripts/build-hibernate-db-matrix.xml:77: The following error occurred while executing this line: /home/cruisecontrol/work/scripts/build-common-targets.xml:11: Build Successful - Tests completed with errors or failures.Date of build: 06/21/2006 22:39:38Time to build: 8 minutes 32 seconds




    Unit Tests: (849)    Total Errors and Failures: (13)testParameterTypeMismatchFailsorg.hibernate.test.hql.ASTParserLoadingTesttestCriteriaAggregationReturnTypeFailureExpectedorg.hibernate.test.hql.CriteriaHQLAlignmentTesttestReturnPropertyComponentRenameorg.hibernate.test.legacy.SQLLoaderTesttestReadOnlyOnProxiesFailureExpectedorg.hibernate.test.readonly.ReadOnlyTesttestCompositeIdJoinsFailureExpectedorg.hibernate.test.sql.GeneralTesttestAutoDetectAliasingorg.hibernate.test.sql.GeneralTesttestEmptyInListFailureExpectedorg.hibernate.test.hql.HQLTesttestMaxindexHqlFunctionInElementAccessorFailureExpectedorg.hibernate.test.hql.HQLTesttestMultipleElementAccessorOperatorsFailureExpectedorg.hibernate.test.hql.HQLTesttestKeyManyToOneJoinFailureExpectedorg.hibernate.test.hql.HQLTesttestDuplicateExplicitJoinFailureExpectedorg.hibernate.test.hql.HQLTesttestOptimisticLockDirtyDeleteFailureExpectedorg.hibernate.test.optlock.OptimisticLockTesttestOptimisticLockAllDeleteFailureExpectedorg.hibernate.test.optlock.OptimisticLockTest 
 Modifications since last build: (first 50 of 0)

All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel