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

2006-03-26 Thread qa

View results here -> http://cruisecontrol.jboss.com/cc/buildresults/hibernate-timesten-testsuite?log=log20060327014225
TESTS FAILEDAnt Error Message: /home/cruisecontrol/work/scripts/build-hibernate-db-matrix.xml:92: The following error occurred while executing this line: /home/cruisecontrol/work/scripts/build-hibernate-db-matrix.xml:76: 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: 03/27/2006 01:42:25Time to build: 23 minutes 13 seconds




    Unit Tests: (824)    Total Errors and Failures: (207)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.AggressiveReleaseTesttestConnectedSerializationorg.hibernate.test.connections.AggressiveReleaseTesttestManualDisconnectWithOpenResourcesorg.hibernate.test.connections.AggressiveReleaseTesttestConnectedSerializationorg.hibernate.test.connections.BasicConnectionProviderTesttestManualDisconnectWithOpenResourcesorg.hibernate.test.connections.BasicConnectionProviderTesttestSerializationFailsOnAfterStatementAggressiveReleaseWithOpenResourcesorg.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.Dom4jTesttestStaleNonVersionedInstanceFoundOnLockorg.hibernate.test.ejb3.lock.RepeatableReadTesttestOrphanDeleteorg.hibernate.test.extralazy.ExtraLazyTesttestIndexFormulaMaporg.hibernate.test.extralazy.ExtraLazyTesttestCollectionJoinsInSubselectorg.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.BulkManipulationTesttestUpdateOnMammalorg.hibernate.test.hql.BulkManipulationTesttestUpdateSetNullUnionSubclassorg.hibernate.test.hql.BulkManipulationTesttestUpdateSetNullOnDiscriminatorSubclassorg.hibernate.test.hql.BulkManipulationTestt

Re: [Hibernate] @Column(insertable=false, updatable=false) is broken

2006-03-26 Thread Emmanuel Bernard

Yes it should throw an exception

Gavin King wrote:

Oh, this is probably because you expect it to be an @JoinColumn. Still,
it should either work, or throw an exception.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gavin
King
Sent: Sunday, March 26, 2006 7:27 PM
To: Emmanuel Bernard
Cc: Hibernate development
Subject: [Hibernate] @Column(insertable=false, updatable=false) is
broken

The following mapping:

   @Id
   @Column(name="blog_name")
   private String blogName;
   
   @OneToOne

   @Column(insertable=false, updatable=false)
   private Blog blog;

Throws:

Caused by: org.hibernate.MappingException: Repeated column in mapping
for entity: domain.HitCount column: blog_name (should be mapped with
insert="false" update="false")
at
org.hibernate.mapping.PersistentClass.checkColumnDuplication(PersistentC
lass.java:575)
at
org.hibernate.mapping.PersistentClass.checkPropertyColumnDuplication(Per
sistentClass.java:597)
at
org.hibernate.mapping.PersistentClass.checkColumnDuplication(PersistentC
lass.java:615)
at
org.hibernate.mapping.PersistentClass.validate(PersistentClass.java:405)
at org.hibernate.mapping.RootClass.validate(RootClass.java:192)
at
org.hibernate.cfg.Configuration.validate(Configuration.java:984)
at
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1
169)
at
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Config
uration.java:414)
at
org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Confi
guration.java:575)
at
org.hibernate.ejb.Ejb3Configuration.createContainerEntityManagerFactory(
Ejb3Configuration.java:245)
at
org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFacto
ry(HibernatePersistence.java:108)
at
org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDep
loyment.java:260)


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language that extends applications into web and mobile media. Attend the
live webcast and join the prime developer group breaking into this new
coding territory!
http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

  




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


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

2006-03-26 Thread qa

View results here -> http://cruisecontrol.jboss.com/cc/buildresults/hibernate-mysql-testsuite?log=log20060327011908
TESTS FAILEDAnt Error Message: /home/cruisecontrol/work/scripts/build-hibernate-db-matrix.xml:120: The following error occurred while executing this line: /home/cruisecontrol/work/scripts/build-hibernate-db-matrix.xml:76: 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: 03/27/2006 01:19:08Time to build: 22 minutes 40 seconds




    Unit Tests: (822)    Total Errors and Failures: (17)testUpdateWithWhereExistsSubqueryorg.hibernate.test.hql.BulkManipulationTesttestQueryorg.hibernate.test.legacy.FooBarTesttestOneToOneGeneratororg.hibernate.test.legacy.FooBarTesttestReachabilityorg.hibernate.test.legacy.FooBarTesttestVersionedCollectionsorg.hibernate.test.legacy.FooBarTesttestReturnPropertyComponentRenameorg.hibernate.test.legacy.SQLLoaderTesttestReadOnlyOnProxiesFailureExpectedorg.hibernate.test.readonly.ReadOnlyTesttestAutoDetectAliasingorg.hibernate.test.sql.GeneralTesttestScalarStoredProcedureorg.hibernate.test.sql.MySQLTesttestParameterHandlingorg.hibernate.test.sql.MySQLTesttestEntityStoredProcedureorg.hibernate.test.sql.MySQLTesttestEmptyInListFailureExpectedorg.hibernate.test.hql.HQLTesttestMaxindexHqlFunctionInElementAccessorFailureExpectedorg.hibernate.test.hql.HQLTesttestMultipleElementAccessorOperatorsFailureExpectedorg.hibernate.test.hql.HQLTesttestKeyManyToOneJoinFailureExpectedorg.hibernate.test.hql.HQLTesttestDuplicateExplicitJoinFailureExpectedorg.hibernate.test.hql.HQLTesttestCollectionFetchVsLoadorg.hibernate.test.stats.StatsTest 
 Modifications since last build: (first 50 of 0)



[Hibernate] hibernate-sqlserver-jtds-testsuite Build Timed Out

2006-03-26 Thread qa

View results here -> http://cruisecontrol.jboss.com/cc/buildresults/hibernate-sqlserver-jtds-testsuite?log=log20060326221908
BUILD TIMED OUTAnt Error Message: build timeoutDate of build: 03/26/2006 22:19:08Time to build: 




    Unit Tests: (0)    Total Errors and Failures: (0) 
 Modifications since last build: (first 50 of 0)



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

2006-03-26 Thread qa

View results here -> http://cruisecontrol.jboss.com/cc/buildresults/hibernate-oracle10-testsuite?log=log20060326220011
TESTS FAILEDAnt Error Message: /home/cruisecontrol/work/scripts/build-hibernate-db-matrix.xml:99: The following error occurred while executing this line: /home/cruisecontrol/work/scripts/build-hibernate-db-matrix.xml:76: 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: 03/26/2006 22:00:11Time to build: 18 minutes 20 seconds




    Unit Tests: (825)    Total Errors and Failures: (9)testReturnPropertyComponentRenameorg.hibernate.test.legacy.SQLLoaderTesttestReadOnlyOnProxiesFailureExpectedorg.hibernate.test.readonly.ReadOnlyTesttestResultTransformerScalarQueriesorg.hibernate.test.hql.ASTParserLoadingTesttestEmptyInListFailureExpectedorg.hibernate.test.hql.HQLTesttestMaxindexHqlFunctionInElementAccessorFailureExpectedorg.hibernate.test.hql.HQLTesttestMultipleElementAccessorOperatorsFailureExpectedorg.hibernate.test.hql.HQLTesttestKeyManyToOneJoinFailureExpectedorg.hibernate.test.hql.HQLTesttestDuplicateExplicitJoinFailureExpectedorg.hibernate.test.hql.HQLTesttestCollectionFetchVsLoadorg.hibernate.test.stats.StatsTest 
 Modifications since last build: (first 50 of 0)



RE: [Hibernate] @Column(insertable=false, updatable=false) is broken

2006-03-26 Thread Gavin King
Oh, this is probably because you expect it to be an @JoinColumn. Still,
it should either work, or throw an exception.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gavin
King
Sent: Sunday, March 26, 2006 7:27 PM
To: Emmanuel Bernard
Cc: Hibernate development
Subject: [Hibernate] @Column(insertable=false, updatable=false) is
broken

The following mapping:

   @Id
   @Column(name="blog_name")
   private String blogName;
   
   @OneToOne
   @Column(insertable=false, updatable=false)
   private Blog blog;

Throws:

Caused by: org.hibernate.MappingException: Repeated column in mapping
for entity: domain.HitCount column: blog_name (should be mapped with
insert="false" update="false")
at
org.hibernate.mapping.PersistentClass.checkColumnDuplication(PersistentC
lass.java:575)
at
org.hibernate.mapping.PersistentClass.checkPropertyColumnDuplication(Per
sistentClass.java:597)
at
org.hibernate.mapping.PersistentClass.checkColumnDuplication(PersistentC
lass.java:615)
at
org.hibernate.mapping.PersistentClass.validate(PersistentClass.java:405)
at org.hibernate.mapping.RootClass.validate(RootClass.java:192)
at
org.hibernate.cfg.Configuration.validate(Configuration.java:984)
at
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1
169)
at
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Config
uration.java:414)
at
org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Confi
guration.java:575)
at
org.hibernate.ejb.Ejb3Configuration.createContainerEntityManagerFactory(
Ejb3Configuration.java:245)
at
org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFacto
ry(HibernatePersistence.java:108)
at
org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDep
loyment.java:260)


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language that extends applications into web and mobile media. Attend the
live webcast and join the prime developer group breaking into this new
coding territory!
http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] @Column(insertable=false, updatable=false) is broken

2006-03-26 Thread Gavin King
The following mapping:

   @Id
   @Column(name="blog_name")
   private String blogName;
   
   @OneToOne
   @Column(insertable=false, updatable=false)
   private Blog blog;

Throws:

Caused by: org.hibernate.MappingException: Repeated column in mapping
for entity: domain.HitCount column: blog_name (should be mapped with
insert="false" update="false")
at
org.hibernate.mapping.PersistentClass.checkColumnDuplication(PersistentC
lass.java:575)
at
org.hibernate.mapping.PersistentClass.checkPropertyColumnDuplication(Per
sistentClass.java:597)
at
org.hibernate.mapping.PersistentClass.checkColumnDuplication(PersistentC
lass.java:615)
at
org.hibernate.mapping.PersistentClass.validate(PersistentClass.java:405)
at org.hibernate.mapping.RootClass.validate(RootClass.java:192)
at
org.hibernate.cfg.Configuration.validate(Configuration.java:984)
at
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1
169)
at
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Config
uration.java:414)
at
org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Confi
guration.java:575)
at
org.hibernate.ejb.Ejb3Configuration.createContainerEntityManagerFactory(
Ejb3Configuration.java:245)
at
org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFacto
ry(HibernatePersistence.java:108)
at
org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDep
loyment.java:260)


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] mappedBy

2006-03-26 Thread Gavin King
Emmanuel, mappedBy should be able to refer to any attribute, not just an
association. Not sure what the spec says, but definitely Hibernate core
supports this.


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] NPE (FumTest)

2006-03-26 Thread Jens Elkner
Hi,

just encountered, that one gets an NPE in
org.hibernate.engine.CollectionLoadContext#addCollectionToCache()
when running the legacy.FumTest#testUnflushedSessionSerialization
with MySQLInnoDBDialect + DefaultHibernateCache:

The ctx lines are:
  s = getSessions().openSession();
  s.setFlushMode(FlushMode.NEVER);
-->  fum = (Fum) s.load( Fum.class, fum.getId() );
  assertTrue("the Fum.friends did not get saved", fum.getFriends().size() == 2);

When loading is done, the correct result gets fetched from the db,
but it seems, that something goes wrong wrt. caching. I fixed, but
I'm not sure, whether it is the right thing, to do it this way...

Any opinions?

Regards,
jens.

fix:
---
hibernate-3.1.3.orig/src/org/hibernate/engine/CollectionLoadContext.java
Mon Mar 20 21:19:36 2006
+++ hibernate-3.1.3/src/org/hibernate/engine/CollectionLoadContext.java
Sat Mar 25 21:14:20 2006
@@ -303,7 +303,18 @@
final Object version;
if ( persister.isVersioned() ) {
versionComparator =
persister.getOwnerEntityPersister().getVersionType().getComparator();
-   version = context.getEntry(
context.getCollectionOwner(lce.key, 
persister)).getVersion();
+   EntityEntry e = context.getEntry( 
context.getCollectionOwner(lce.key, persister) );
+   if (e == null) {
+   log.error(lce.key + " not found in context - no 
version info");
+   if (log.isDebugEnabled()) {
+   Exception ex = new Exception("no 
version exception");
+   ex.fillInStackTrace();
+   
log.debug("persister.getVersion", ex);
+   }
+   version = null;
+   } else {
+   version = e.getVersion();
+   }
}
else {
version = null;




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] hibernate-sybase-testsuite Build Timed Out

2006-03-26 Thread qa

View results here -> http://cruisecontrol.jboss.com/cc/buildresults/hibernate-sybase-testsuite?log=log20060326021742
BUILD TIMED OUTAnt Error Message: build timeoutDate of build: 03/26/2006 02:17:42Time to build: 




    Unit Tests: (0)    Total Errors and Failures: (0) 
 Modifications since last build: (first 50 of 0)