Subject Re: [Firebird-Java] Hibernate and database constraints
Author Christian Stengel
Hi Roman,

> >> - improved Hibernate support (nothing's there);
>
> committed yesterday - hopefully now the correct exceptions will be
> reported. BTW, can somebody prepare a test case that would check
> whether
> Jaybird does it correctly?

wow - amaizing fast :). I can confirm that the new driver throws the
exception.

Just a question - if checked out client-java cvs from sf.net and it
seems that some tests fail - im running them on MacOS X - are there
any special requirements beside those jars within the repository?

java -version
java version "1.5.0_07"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-164)
Java HotSpot(TM) Client VM (build 1.5.0_07-87, mixed mode, sharing)

-- snip --
all-tests-pure-java:
[mkdir] Created dir: /Users/chris/Development/jaybird/client-
java/output/db
[mkdir] Created dir: /Users/chris/Development/jaybird/client-
java/output/reports/pure_java
[mkdir] Created dir: /Users/chris/Development/jaybird/client-
java/output/log
[junit] Running org.firebirdsql.encodings.TestCharacterTranslation
[junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed:
0,183 sec
[junit] Running org.firebirdsql.event.TestFBEventManager
[junit] Tests run: 8, Failures: 0, Errors: 8, Time elapsed:
0,766 sec
[junit] Test org.firebirdsql.event.TestFBEventManager FAILED
[junit] Running org.firebirdsql.gds.TestGDSServerVersion
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed:
0,108 sec
[junit] Running org.firebirdsql.gds.TestReconnectTransaction
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed:
0,222 sec
[junit] Test org.firebirdsql.gds.TestReconnectTransaction FAILED
[junit] Running org.firebirdsql.gds.impl.wire.TestGds
[junit] Tests run: 13, Failures: 0, Errors: 13, Time elapsed:
0,668 sec
[junit] Test org.firebirdsql.gds.impl.wire.TestGds FAILED
[junit] Running org.firebirdsql.jca.TestDataSourceSerialization
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed:
0,225 sec
[junit] Test org.firebirdsql.jca.TestDataSourceSerialization FAILED
[junit] Running org.firebirdsql.jca.TestFBBlob
[junit] Tests run: 3, Failures: 0, Errors: 3, Time elapsed:
0,378 sec
[junit] Test org.firebirdsql.jca.TestFBBlob FAILED
[junit] Running org.firebirdsql.jca.TestFBConnection
[junit] Tests run: 4, Failures: 0, Errors: 4, Time elapsed:
0,881 sec
[junit] Test org.firebirdsql.jca.TestFBConnection FAILED
[junit] Running org.firebirdsql.jca.TestFBDatabaseMetaData
[junit] Tests run: 18, Failures: 0, Errors: 18, Time elapsed:
1,513 sec
[junit] Test org.firebirdsql.jca.TestFBDatabaseMetaData FAILED
[junit] Running org.firebirdsql.jca.TestFBManagedConnectionFactory
[junit] Tests run: 2, Failures: 0, Errors: 2, Time elapsed:
0,298 sec
[junit] Test org.firebirdsql.jca.TestFBManagedConnectionFactory
FAILED
[junit] Running org.firebirdsql.jca.TestFBResultSet
[junit] Tests run: 6, Failures: 0, Errors: 6, Time elapsed:
0,601 sec
[junit] Test org.firebirdsql.jca.TestFBResultSet FAILED
[junit] Running
org.firebirdsql.jca.TestFBStandAloneConnectionManager
[junit] Tests run: 3, Failures: 0, Errors: 3, Time elapsed:
0,372 sec
[junit] Test
org.firebirdsql.jca.TestFBStandAloneConnectionManager FAILED
[junit] Running org.firebirdsql.jca.TestFBTpbMapper
[junit] Tests run: 2, Failures: 0, Errors: 2, Time elapsed:
0,298 sec
[junit] Test org.firebirdsql.jca.TestFBTpbMapper FAILED
[junit] Running org.firebirdsql.jca.TestFBXAResource
[junit] Tests run: 8, Failures: 0, Errors: 8, Time elapsed:
0,756 sec
[junit] Test org.firebirdsql.jca.TestFBXAResource FAILED
[junit] Running org.firebirdsql.jdbc.TestBatchUpdates
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed:
0,221 sec
[junit] Test org.firebirdsql.jdbc.TestBatchUpdates FAILED
[junit] Running org.firebirdsql.jdbc.TestBoundary
[junit] Tests run: 2, Failures: 0, Errors: 2, Time elapsed: 0,3 sec
[junit] Test org.firebirdsql.jdbc.TestBoundary FAILED
[junit] Running org.firebirdsql.jdbc.TestDDL
[junit] Tests run: 3, Failures: 0, Errors: 3, Time elapsed:
0,373 sec
[junit] Test org.firebirdsql.jdbc.TestDDL FAILED
[junit] Running org.firebirdsql.jdbc.TestFBBlobAccess
[junit] Tests run: 4, Failures: 0, Errors: 4, Time elapsed:
0,446 sec
[junit] Test org.firebirdsql.jdbc.TestFBBlobAccess FAILED
[junit] Running org.firebirdsql.jdbc.TestFBBlobAutocommit
[junit] Tests run: 4, Failures: 0, Errors: 4, Time elapsed:
0,447 sec
[junit] Test org.firebirdsql.jdbc.TestFBBlobAutocommit FAILED
[junit] Running org.firebirdsql.jdbc.TestFBBlobParams
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed:
0,223 sec
[junit] Test org.firebirdsql.jdbc.TestFBBlobParams FAILED
[junit] Running org.firebirdsql.jdbc.TestFBBlobStream
[junit] Tests run: 6, Failures: 0, Errors: 6, Time elapsed:
0,613 sec
[junit] Test org.firebirdsql.jdbc.TestFBBlobStream FAILED
[junit] Running org.firebirdsql.jdbc.TestFBCallableStatement
[junit] Tests run: 15, Failures: 0, Errors: 15, Time elapsed:
1,308 sec
[junit] Test org.firebirdsql.jdbc.TestFBCallableStatement FAILED
[junit] Running org.firebirdsql.jdbc.TestFBConnection
[junit] Tests run: 8, Failures: 0, Errors: 8, Time elapsed:
0,753 sec
[junit] Test org.firebirdsql.jdbc.TestFBConnection FAILED
[junit] Running org.firebirdsql.jdbc.TestFBDatabaseMetaDataNulls
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0,22
sec
[junit] Test org.firebirdsql.jdbc.TestFBDatabaseMetaDataNulls
FAILED
[junit] Running org.firebirdsql.jdbc.TestFBDecimalConversions
[junit] Tests run: 3, Failures: 0, Errors: 3, Time elapsed:
0,373 sec
[junit] Test org.firebirdsql.jdbc.TestFBDecimalConversions FAILED
[junit] Running org.firebirdsql.jdbc.TestFBDriver
[junit] Tests run: 9, Failures: 0, Errors: 9, Time elapsed:
0,838 sec
[junit] Test org.firebirdsql.jdbc.TestFBDriver FAILED
[junit] Running org.firebirdsql.jdbc.TestFBEncodings
[junit] Tests run: 9, Failures: 0, Errors: 9, Time elapsed:
0,846 sec
[junit] Test org.firebirdsql.jdbc.TestFBEncodings FAILED
[junit] Running org.firebirdsql.jdbc.TestFBEscapedCallParser
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed:
0,128 sec
[junit] Running org.firebirdsql.jdbc.TestFBEscapedFunctionHelper
[junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed:
0,121 sec
[junit] Running org.firebirdsql.jdbc.TestFBLongVarCharEncodings
[junit] Tests run: 9, Failures: 0, Errors: 9, Time elapsed:
1,281 sec
[junit] Test org.firebirdsql.jdbc.TestFBLongVarCharEncodings FAILED
[junit] Running org.firebirdsql.jdbc.TestFBParameterMetaData
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed:
0,223 sec
[junit] Test org.firebirdsql.jdbc.TestFBParameterMetaData FAILED
[junit] Running org.firebirdsql.jdbc.TestFBPreparedStatement
[junit] Tests run: 13, Failures: 0, Errors: 13, Time elapsed:
1,151 sec
[junit] Test org.firebirdsql.jdbc.TestFBPreparedStatement FAILED
[junit] Running org.firebirdsql.jdbc.TestFBResultSet
[junit] Tests run: 15, Failures: 0, Errors: 15, Time elapsed:
1,295 sec
[junit] Test org.firebirdsql.jdbc.TestFBResultSet FAILED
[junit] Running org.firebirdsql.jdbc.TestFBResultSet3_0
[junit] Tests run: 16, Failures: 0, Errors: 16, Time elapsed:
1,377 sec
[junit] Test org.firebirdsql.jdbc.TestFBResultSet3_0 FAILED
[junit] Running org.firebirdsql.jdbc.TestFBResultSetMetaData
[junit] Tests run: 3, Failures: 0, Errors: 3, Time elapsed:
0,385 sec
[junit] Test org.firebirdsql.jdbc.TestFBResultSetMetaData FAILED
[junit] Running org.firebirdsql.jdbc.TestFBSavepoint
[junit] Tests run: 3, Failures: 0, Errors: 3, Time elapsed:
0,374 sec
[junit] Test org.firebirdsql.jdbc.TestFBSavepoint FAILED
[junit] Running org.firebirdsql.jdbc.TestFBUnmanagedConnection
[junit] Tests run: 7, Failures: 0, Errors: 7, Time elapsed:
0,685 sec
[junit] Test org.firebirdsql.jdbc.TestFBUnmanagedConnection FAILED
[junit] Running org.firebirdsql.jdbc.TestFBWrappingDataSource
[junit] Tests run: 6, Failures: 0, Errors: 6, Time elapsed: 0,6 sec
[junit] Test org.firebirdsql.jdbc.TestFBWrappingDataSource FAILED
[junit] Running org.firebirdsql.jdbc.TestMultithreadedAccess
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed:
0,219 sec
[junit] Test org.firebirdsql.jdbc.TestMultithreadedAccess FAILED
[junit] Running org.firebirdsql.jdbc.TestReconnect
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed:
0,627 sec
[junit] Test org.firebirdsql.jdbc.TestReconnect FAILED
[junit] Running org.firebirdsql.jdbc.TestTableReservation
[junit] Tests run: 10, Failures: 0, Errors: 10, Time elapsed:
0,931 sec
[junit] Test org.firebirdsql.jdbc.TestTableReservation FAILED
[junit] Running org.firebirdsql.jdbc.field.TestFBBigDecimalField
[junit] Tests run: 17, Failures: 0, Errors: 0, Time elapsed:
0,143 sec
[junit] Running org.firebirdsql.jdbc.field.TestFBDateField
[junit] Tests run: 17, Failures: 0, Errors: 0, Time elapsed:
0,148 sec
[junit] Running org.firebirdsql.jdbc.field.TestFBDoubleField
[junit] Tests run: 17, Failures: 0, Errors: 0, Time elapsed:
0,148 sec
[junit] Running org.firebirdsql.jdbc.field.TestFBFloatField
[junit] Tests run: 17, Failures: 0, Errors: 0, Time elapsed:
0,148 sec
[junit] Running org.firebirdsql.jdbc.field.TestFBIntegerField
[junit] Tests run: 17, Failures: 0, Errors: 0, Time elapsed:
0,146 sec
[junit] Running org.firebirdsql.jdbc.field.TestFBLongField
[junit] Tests run: 17, Failures: 0, Errors: 0, Time elapsed:
0,146 sec
[junit] Running org.firebirdsql.jdbc.field.TestFBShortField
[junit] Tests run: 17, Failures: 0, Errors: 0, Time elapsed:
0,147 sec
[junit] Running org.firebirdsql.jdbc.field.TestFBStringField
[junit] Tests run: 18, Failures: 0, Errors: 0, Time elapsed:
0,18 sec
[junit] Running org.firebirdsql.jdbc.field.TestFBTimeField
[junit] Tests run: 17, Failures: 0, Errors: 0, Time elapsed:
0,15 sec
[junit] Running org.firebirdsql.jdbc.field.TestFBTimestampField
[junit] Tests run: 17, Failures: 0, Errors: 0, Time elapsed:
0,149 sec
[junit] Running org.firebirdsql.management.TestBackupManager
[junit] Tests run: 6, Failures: 0, Errors: 6, Time elapsed:
0,602 sec
[junit] Test org.firebirdsql.management.TestBackupManager FAILED
[junit] Running org.firebirdsql.management.TestFBMaintenanceManager
[junit] Tests run: 28, Failures: 0, Errors: 28, Time elapsed:
2,253 sec
[junit] Test org.firebirdsql.management.TestFBMaintenanceManager
FAILED
[junit] Running org.firebirdsql.management.TestFBManager
[junit] Tests run: 2, Failures: 0, Errors: 2, Time elapsed:
0,298 sec
[junit] Test org.firebirdsql.management.TestFBManager FAILED
[junit] Running org.firebirdsql.management.TestFBStatisticsManager
[junit] Tests run: 5, Failures: 0, Errors: 5, Time elapsed:
0,527 sec
[junit] Test org.firebirdsql.management.TestFBStatisticsManager
FAILED
[junit] Running org.firebirdsql.management.TestUserManager
[junit] Tests run: 2, Failures: 0, Errors: 2, Time elapsed:
0,299 sec
[junit] Test org.firebirdsql.management.TestUserManager FAILED
[junit] Running org.firebirdsql.pool.TestBlockingStack
[junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed:
2,109 sec
[junit] Running
org.firebirdsql.pool.TestDriverConnectionPoolDataSource
[junit] Tests run: 22, Failures: 0, Errors: 22, Time elapsed:
1,121 sec
[junit] Test
org.firebirdsql.pool.TestDriverConnectionPoolDataSource FAILED
[junit] Running org.firebirdsql.pool.TestFBConnectionPoolDataSource
[junit] Tests run: 21, Failures: 0, Errors: 21, Time elapsed:
0,215 sec
[junit] Test org.firebirdsql.pool.TestFBConnectionPoolDataSource
FAILED
[junit] Running org.firebirdsql.pool.TestXADataSource
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0,15
sec
[junit] Test org.firebirdsql.pool.TestXADataSource FAILED

tests-report-html-pure-java:
[mkdir] Created dir: /Users/chris/Development/jaybird/client-
java/output/reports/pure_java/html
[junitreport] Transform time: 1902ms

BUILD SUCCESSFUL
Total time: 1 minute 1 second
-- snip --

Thanks a lot,

Christian