[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-5399) Unidirectional one-to-many relationship fails when creating referenced entity object (testcase provided)
Jürgen Zimmermann (JIRA)
noreply at atlassian.com
Fri Jul 23 13:04:35 EDT 2010
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-5399?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=37900#action_37900 ]
Jürgen Zimmermann commented on HHH-5399:
----------------------------------------
Same invalid issue as http://opensource.atlassian.com/projects/hibernate/browse/HHH-5378 .
Please reject it.
> 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
> 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