[hibernate-issues] [Hibernate-JIRA] Resolved: (HHH-5399) Unidirectional one-to-many relationship fails when creating referenced entity object (testcase provided)

Gail Badner (JIRA) noreply at atlassian.com
Fri Jul 23 15:38:35 EDT 2010


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

Gail Badner resolved HHH-5399.
------------------------------

      Assignee: Gail Badner
    Resolution: Rejected

> Unidirectional one-to-many relationship fails when creating referenced entity object (testcase provided)
> --------------------------------------------------------------------------------------------------------
>
>                 Key: HHH-5399
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5399
>             Project: Hibernate Core
>          Issue Type: Bug
>          Components: entity-manager
>    Affects Versions: 3.5.3
>            Reporter: Jürgen Zimmermann
>            Assignee: Gail Badner
>         Attachments: testcase.zip
>
>
> The attached "Maven-ized" testcase works as follows:
> * Create an H2 database with tables t_customer and t_order, and insert one customer with two orders.
> * Compile and run the test class: both test methods fail.
> 1st method:
> * lookup the customer and verify the 2 referenced orders
> * create a new order for the customer
> * EntityManager.merge(customer)
> 2nd method:
> * lookup the customer and verify the 2 referenced orders
> * create a new order for the customer
> * EntityManager.persist(newOrder)

-- 
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