[hibernate-issues] [Hibernate-JIRA] Closed: (HHH-894) SQL Server 2000 many-to-one unique="true" cascade="all" to String custom generated Id throws PropertyValueException on cascade save

Steve Ebersole (JIRA) noreply at atlassian.com
Mon Mar 21 13:00:32 EDT 2011


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-894?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steve Ebersole closed HHH-894.
------------------------------


Closing stale resolved issues

> SQL Server 2000 many-to-one unique="true" cascade="all" to String custom generated Id throws PropertyValueException on cascade save
> -----------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HHH-894
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-894
>             Project: Hibernate Core
>          Issue Type: Bug
>    Affects Versions: 3.1 beta 2
>         Environment: Hibernate:  3.1 latest from CVS (22 August 2005)
> Database:  SQL Server 2000
> Java:  j2sdk1.4.2_03
>            Reporter: Nathan Moon
>         Attachments: jug.jar, nathanuuidtest.zip, onetoonecascade.zip
>
>
> see http://forum.hibernate.org/viewtopic.php?t=946560
> I get an exception:  org.hibernate.PropertyValueException: not-null property references a null or transient value: ... in the following case:
> UUIDTable has a String user generated UUID PK.
> OneToOneTable has a one-to-one association to UUIDTable, with cascase="all"
> I create a new UUIDTable object and a new OneToOneTable object, set the association, and call save on the OneToOneTable object.  The cascade attribute should cause the UUIDTable object to get saved before the OneToOneTable object, but the exception is thrown instead.
> This happens when using SQLServer 2000 database (SQLServerDialect), but not when using PostgreSQL 8 database (PostgreSQLDialect).  I haven't tried other DBs.
> I have attached my mapping files and POJOs, my UUID generator classes, SQLServer DDL, and my testcase code to reproduce the problem.  POJOs and DDL are generated by Hibernate Tools and SchemaExport.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list