[Hibernate] Named primary key constraints

2006-03-17 Thread Gudlaugur Egilsson
Hi

I sent a post recently (too detailed obviously, since noone has
commented on it :-) regarding some features we require that hibernate is
currently not implementing. So here goes again, one more descriptive
post per feature.

One of those is explicitly named primary key constraints. The basic
theory is that instead of primary keys being declared in a DDL in a
manner such as:

create table y
   k number(19,0),
   f varchar(2),
primary key(k)

it should be possible to declare as

create table y
   k number(19,0),
   f varchar(2),
constraint pk_y primary key(k)

This is a syntax supported by many databases, at least Oracle, DB2 and
HSQLDB (those I have tested).

For starters, hbm.xml files need a place to store the primary key name.
Primary keys are associated with
id elements in Hibernate (id, composite-id), so it seems
straightforward to associate a primary-key attribute
to those elements. 

We then need code changes to bind those attributes and make them
available for DDL generation. This almost
certainly means an addition to the Dialect class as well.

Please let me know if I'm not approaching this from the right angle...

Thanks

-Gudlaugur Egilsson


---
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=lnkkid=110944bid=241720dat=121642
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


Re: [Hibernate] Named primary key constraints

2006-03-17 Thread Max Rydahl Andersen



Please let me know if I'm not approaching this from the right angle...


sounds about right.

I'm not sure if we want to add it, but provide a patch against SVN main  
trunk
and implement in a way so it does not fail on db's that does not support  
named primary keys -

then it at least have a much higher chance of getting applied.

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

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

JBoss Inc
[EMAIL PROTECTED]


---
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=lnkkid=110944bid=241720dat=121642
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] tools bundling hibernate 3.2.x

2006-03-17 Thread Max Rydahl Andersen

Hi guys,

now that annotations is starting to be dependent on 3.2.x it would make  
sense if the tools moved along and
thus allowed usage of latest ejb3/annotaitons work in the ant and eclipse  
tools.


I assume that hibernate 3.2 will be compatible with 3.1 mapping files  
+ possibly additions and as such
the tools will still be able to be used by 3.1 users as long as they use  
the hibernate distributed with
the tools (in the future we/I hope to bundle the hibernate-tools.jar with  
3.2, but that is still work in progress)


Anyone that can see problems with us doing this ?

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

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

JBoss Inc
[EMAIL PROTECTED]


---
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=lnkkid=110944bid=241720dat=121642
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] FYI fisheye svn

2006-03-17 Thread Max Rydahl Andersen


http://fisheye.jboss.org/viewrep/Hibernate/

and i already updated http://www.hibernate.org/30.html

so know our move is complete.

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

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

JBoss Inc
[EMAIL PROTECTED]


---
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=lnkkid=110944bid=241720dat=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-17 Thread qa

View results here -> http://cruisecontrol.jboss.com/cc/buildresults/hibernate-mysql-testsuite?log=log20060317215952
TESTS FAILEDAnt Error Message:/home/cruisecontrol/work/scripts/build-hibernate-db-matrix.xml:119: The following error occurred while executing this line: /home/cruisecontrol/work/scripts/build-hibernate-db-matrix.xml:75: 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/17/2006 21:59:52Time to build:22 minutes 32 seconds




   Unit Tests: (822)   Total Errors and Failures: (19)testStaleVersionedInstanceFoundInQueryResultorg.hibernate.test.ejb3.lock.RepeatableReadTesttestStaleVersionedInstanceFoundOnLockorg.hibernate.test.ejb3.lock.RepeatableReadTesttestUpdateWithWhereExistsSubqueryorg.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-17 Thread qa

View results here -> http://cruisecontrol.jboss.com/cc/buildresults/hibernate-sqlserver-jtds-testsuite?log=log20060317223632
BUILD TIMED OUTAnt Error Message:build timeoutDate of build:03/17/2006 22:36:32Time 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-17 Thread qa

View results here -> http://cruisecontrol.jboss.com/cc/buildresults/hibernate-oracle10-testsuite?log=log20060318013632
TESTS FAILEDAnt Error Message:/home/cruisecontrol/work/scripts/build-hibernate-db-matrix.xml:98: The following error occurred while executing this line: /home/cruisecontrol/work/scripts/build-hibernate-db-matrix.xml:75: 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/18/2006 01:36:32Time to build:15 minutes 35 seconds




   Unit Tests: (825)   Total Errors and Failures: (10)testJDBC3GetGeneratedKeysSupportOnOracleorg.hibernate.test.generatedkeys.oracle.OracleGeneratedKeysTesttestReturnPropertyComponentRenameorg.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)



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

2006-03-17 Thread qa

View results here -> http://cruisecontrol.jboss.com/cc/buildresults/hibernate-hsqldb-testsuite?log=log20060318015237
TESTS FAILEDAnt Error Message:/home/cruisecontrol/work/scripts/build-hibernate-db-matrix.xml:84: The following error occurred while executing this line: /home/cruisecontrol/work/scripts/build-hibernate-db-matrix.xml:75: 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/18/2006 01:52:37Time to build:8 minutes 27 seconds




   Unit Tests: (824)   Total Errors and Failures: (8)testReturnPropertyComponentRenameorg.hibernate.test.legacy.SQLLoaderTesttestReadOnlyOnProxiesFailureExpectedorg.hibernate.test.readonly.ReadOnlyTesttestEmptyInListFailureExpectedorg.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)