Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 85293 Details for
Bug 213039
EntityManagerJUnitTestSuite.internalTestManagedEmployeesMassInsertOrMerge clean up causes failures in MySQL
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
proposed patch
213039-mysql-foreign-key-test.patch (text/plain), 1.06 KB, created by
Tom Ware
on 2007-12-14 11:33:41 EST
(
hide
)
Description:
proposed patch
Filename:
MIME Type:
Creator:
Tom Ware
Created:
2007-12-14 11:33:41 EST
Size:
1.06 KB
patch
obsolete
>Index: src/org/eclipse/persistence/testing/tests/jpa/advanced/EntityManagerJUnitTestSuite.java >=================================================================== >--- src/org/eclipse/persistence/testing/tests/jpa/advanced/EntityManagerJUnitTestSuite.java (revision 6743) >+++ src/org/eclipse/persistence/testing/tests/jpa/advanced/EntityManagerJUnitTestSuite.java (working copy) >@@ -5152,7 +5152,14 @@ > em = createEntityManager(); > em.getTransaction().begin(); > try { >- em.createQuery("DELETE FROM Employee e WHERE e.firstName LIKE 'Level_%'").executeUpdate(); >+ List<Employee> employees = em.createQuery("Select e FROM Employee e WHERE e.firstName LIKE 'Level_%'").getResultList(); >+ Iterator<Employee> i = employees.iterator(); >+ while(i.hasNext()){ >+ Employee emp = i.next(); >+ emp.setManager(null); >+ emp.setManagedEmployees(null); >+ em.remove(emp); >+ } > em.getTransaction().commit(); > } finally { > if (em.getTransaction().isActive()){
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 213039
: 85293